Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

deposit_coin.output method_missing #12

Open
openbooknoobdeveloper opened this issue Nov 16, 2018 · 0 comments
Open

deposit_coin.output method_missing #12

openbooknoobdeveloper opened this issue Nov 16, 2018 · 0 comments

Comments

@openbooknoobdeveloper
Copy link

my bitcoin wallet it is installed in the same server of the exchange.

bitcoind it is running
I have full info of the blocks coins and ballance by terminal using bitcoin-cli

I don't know why I can't connect to the wallet.

bitcoin.conf file

server=1
daemon=1
testnet=1
rpcuser=testuser
rpcpassword=testpass
rpcport=18332
#rpcconnect=myserverIp

walletnotify=/usr/local/sbin/rabbitmqadmin publish routing_key=peatio.deposit.coin payload='{"txid":"%s", "channel_key":"satoshi"}'

tail -f log/peatio:amqp:deposit_coin.output

I, [2018-11-16T10:26:05.588649 #14340]  INFO -- : Received: Worker::DepositCoinAddress {"payment_address_id":2,"currency":"btc","locale":"en"}
I, [2018-11-16T10:26:05.590406 #14340]  INFO -- : Making class (btc)

F, [2018-11-16T10:26:05.590517 #14340] FATAL -- : wrong number of arguments (3 for 0) (ArgumentError)
/home/ubuntuuser/graviex-peatio/app/services/coin_rpc.rb:47:in `handle'
/home/ubuntuuser/graviex-peatio/app/services/coin_rpc.rb:44:in `method_missing'
/home/ubuntuuser/graviex-peatio/app/models/worker/deposit_coin_address.rb:17:in `process'
/home/ubuntuuser/graviex-peatio/lib/daemons/amqp_daemon.rb:61:in `block (2 levels) in <top (required)>'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bunny-1.2.1/lib/bunny/consumer.rb:56:in `call'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bunny-1.2.1/lib/bunny/consumer.rb:56:in `call'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bunny-1.2.1/lib/bunny/channel.rb:1672:in `block in handle_frameset'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bunny-1.2.1/lib/bunny/consumer_work_pool.rb:84:in `call'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bunny-1.2.1/lib/bunny/consumer_work_pool.rb:84:in `block (2 levels) in run_loop'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bunny-1.2.1/lib/bunny/consumer_work_pool.rb:80:in `loop'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bunny-1.2.1/lib/bunny/consumer_work_pool.rb:80:in `block in run_loop'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bunny-1.2.1/lib/bunny/consumer_work_pool.rb:79:in `catch'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bunny-1.2.1/lib/bunny/consumer_work_pool.rb:79:in `run_loop'
F, [2018-11-16T10:26:05.590542 #14340] FATAL -- : /home/ubuntuuser/graviex-peatio/app/services/coin_rpc.rb:47:in `handle'
/home/ubuntuuser/graviex-peatio/app/services/coin_rpc.rb:44:in `method_missing'
/home/ubuntuuser/graviex-peatio/app/models/worker/deposit_coin_address.rb:17:in `process'
/home/ubuntuuser/graviex-peatio/lib/daemons/amqp_daemon.rb:61:in `block (2 levels) in <top (required)>'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bunny-1.2.1/lib/bunny/consumer.rb:56:in `call'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bunny-1.2.1/lib/bunny/consumer.rb:56:in `call'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bunny-1.2.1/lib/bunny/channel.rb:1672:in `block in handle_frameset'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bunny-1.2.1/lib/bunny/consumer_work_pool.rb:84:in `call'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bunny-1.2.1/lib/bunny/consumer_work_pool.rb:84:in `block (2 levels) in run_loop'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bunny-1.2.1/lib/bunny/consumer_work_pool.rb:80:in `loop'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bunny-1.2.1/lib/bunny/consumer_work_pool.rb:80:in `block in run_loop'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bunny-1.2.1/lib/bunny/consumer_work_pool.rb:79:in `catch'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bunny-1.2.1/lib/bunny/consumer_work_pool.rb:79:in `run_loop'
I, [2018-11-16T10:26:05.591948 #14340]  INFO -- : Received: Worker::DepositCoinAddress {"payment_address_id":3,"currency":"gio","locale":"en"}
I, [2018-11-16T10:26:05.593346 #14340]  INFO -- : Making class (gio)

F, [2018-11-16T10:26:05.593459 #14340] FATAL -- : wrong number of arguments (3 for 0) (ArgumentError)
/home/ubuntuuser/graviex-peatio/app/services/coin_rpc.rb:47:in `handle'
/home/ubuntuuser/graviex-peatio/app/services/coin_rpc.rb:44:in `method_missing'
/home/ubuntuuser/graviex-peatio/app/models/worker/deposit_coin_address.rb:17:in `process'
/home/ubuntuuser/graviex-peatio/lib/daemons/amqp_daemon.rb:61:in `block (2 levels) in <top (required)>'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bunny-1.2.1/lib/bunny/consumer.rb:56:in `call'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bunny-1.2.1/lib/bunny/consumer.rb:56:in `call'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bunny-1.2.1/lib/bunny/channel.rb:1672:in `block in handle_frameset'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bunny-1.2.1/lib/bunny/consumer_work_pool.rb:84:in `call'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bunny-1.2.1/lib/bunny/consumer_work_pool.rb:84:in `block (2 levels) in run_loop'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bunny-1.2.1/lib/bunny/consumer_work_pool.rb:80:in `loop'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bunny-1.2.1/lib/bunny/consumer_work_pool.rb:80:in `block in run_loop'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bunny-1.2.1/lib/bunny/consumer_work_pool.rb:79:in `catch'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bunny-1.2.1/lib/bunny/consumer_work_pool.rb:79:in `run_loop'
F, [2018-11-16T10:26:05.593490 #14340] FATAL -- : /home/ubuntuuser/graviex-peatio/app/services/coin_rpc.rb:47:in `handle'
/home/ubuntuuser/graviex-peatio/app/services/coin_rpc.rb:44:in `method_missing'
/home/ubuntuuser/graviex-peatio/app/models/worker/deposit_coin_address.rb:17:in `process'
/home/ubuntuuser/graviex-peatio/lib/daemons/amqp_daemon.rb:61:in `block (2 levels) in <top (required)>'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bunny-1.2.1/lib/bunny/consumer.rb:56:in `call'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bunny-1.2.1/lib/bunny/consumer.rb:56:in `call'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bunny-1.2.1/lib/bunny/channel.rb:1672:in `block in handle_frameset'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bunny-1.2.1/lib/bunny/consumer_work_pool.rb:84:in `call'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bunny-1.2.1/lib/bunny/consumer_work_pool.rb:84:in `block (2 levels) in run_loop'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bunny-1.2.1/lib/bunny/consumer_work_pool.rb:80:in `loop'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bunny-1.2.1/lib/bunny/consumer_work_pool.rb:80:in `block in run_loop'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bunny-1.2.1/lib/bunny/consumer_work_pool.rb:79:in `catch'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bunny-1.2.1/lib/bunny/consumer_work_pool.rb:79:in `run_loop'

tail -f log/hot_wallets.rb.output

Processing coin = cny (-offline)
Processing coin = btc (?offline)
[error]: wrong number of arguments (1 for 0)
/home/ubuntuuser/graviex-peatio/app/services/coin_rpc.rb:47:in `handle'
/home/ubuntuuser/graviex-peatio/app/services/coin_rpc.rb:44:in `method_missing'
/home/ubuntuuser/graviex-peatio/app/models/currency.rb:91:in `refresh_balance'
/home/ubuntuuser/graviex-peatio/lib/daemons/hot_wallets.rb:21:in `block in <top (required)>'
/home/ubuntuuser/graviex-peatio/lib/daemons/hot_wallets.rb:18:in `each'
/home/ubuntuuser/graviex-peatio/lib/daemons/hot_wallets.rb:18:in `<top (required)>'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/daemons-1.1.9/lib/daemons/application.rb:203:in `load'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/daemons-1.1.9/lib/daemons/application.rb:203:in `start_load'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/daemons-1.1.9/lib/daemons/application.rb:298:in `start'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/daemons-1.1.9/lib/daemons/controller.rb:70:in `run'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/daemons-1.1.9/lib/daemons.rb:147:in `block in run'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/daemons-1.1.9/lib/daemons/cmdline.rb:109:in `call'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/daemons-1.1.9/lib/daemons/cmdline.rb:109:in `catch_exceptions'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/daemons-1.1.9/lib/daemons.rb:146:in `run'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/daemons-rails-1.2.1/lib/daemons/rails.rb:16:in `run'
lib/daemons/hot_wallets_ctl:6:in `<main>'
Processing coin = gio (?offline)
[error]: wrong number of arguments (1 for 0)
/home/ubuntuuser/graviex-peatio/app/services/coin_rpc.rb:47:in `handle'
/home/ubuntuuser/graviex-peatio/app/services/coin_rpc.rb:44:in `method_missing'
/home/ubuntuuser/graviex-peatio/app/models/currency.rb:91:in `refresh_balance'
/home/ubuntuuser/graviex-peatio/lib/daemons/hot_wallets.rb:21:in `block in <top (required)>'
/home/ubuntuuser/graviex-peatio/lib/daemons/hot_wallets.rb:18:in `each'
/home/ubuntuuser/graviex-peatio/lib/daemons/hot_wallets.rb:18:in `<top (required)>'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/daemons-1.1.9/lib/daemons/application.rb:203:in `load'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/daemons-1.1.9/lib/daemons/application.rb:203:in `start_load'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/daemons-1.1.9/lib/daemons/application.rb:298:in `start'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/daemons-1.1.9/lib/daemons/controller.rb:70:in `run'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/daemons-1.1.9/lib/daemons.rb:147:in `block in run'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/daemons-1.1.9/lib/daemons/cmdline.rb:109:in `call'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/daemons-1.1.9/lib/daemons/cmdline.rb:109:in `catch_exceptions'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/daemons-1.1.9/lib/daemons.rb:146:in `run'
/home/ubuntuuser/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/daemons-rails-1.2.1/lib/daemons/rails.rb:16:in `run'
lib/daemons/hot_wallets_ctl:6:in `<main>'

curl -X POST http://testuser:testpass@127.0.0.1:18332/ -d '{"jsonrpc":"2.0","id":"0","method":"getinfo"}' -H 'Content-Type: application/json'

{"result":null,"error":{"code":-32601,"message":"getinfo\n\nThis call was removed in version 0.16.0. Use the appropriate fields from:\n- getblockchaininfo: blocks, difficulty, chain\n- getnetworkinfo: version, protocolversion, timeoffset, connections, proxy, relayfee, warnings\n- getwalletinfo: balance, keypoololdest, keypoolsize, paytxfee, unlocked_until, walletversion\n\nbitcoin-cli has the option -getinfo to collect and format these in the old format."},"id":"0"}

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant