scala-network / scala-v7

A cryptocurrency aiming to use blockchain technologies to globally distribute wealth.
Other
83 stars 27 forks source link

stellite-wallet-rpc issue #39

Closed fractalyse closed 4 years ago

fractalyse commented 6 years ago

after using open_wallet and getbalance, wallet-rpc doesnt answer to rpc calls during 2-3 minutes, each time a wallet is opened

step to reproduce :

echo "call 1"
time curl --digest -u test:1324 -X POST http://0.0.0.0:20191/json_rpc -d '{"method":"open_wallet","params":{"filename":"wallet-test","password":"1234"},"id":0}' -H 'Content-Type: application/json'
sleep 1
echo "call 2"
time curl --digest -u test:1324 -X POST http://0.0.0.0:20191/json_rpc -d '{"jsonrpc":"2.0","id":"1","method":"getbalance"}' -H 'Content-Type: application/json'
sleep 1
echo "call 3"
time curl --digest -u test:1324 -X POST http://0.0.0.0:20191/json_rpc -d '{"method":"incoming_transfers","params":{"transfer_type":"all","account_index":0},"id":2}' -H 'Content-Type: application/json'
sleep 1
echo "call 4"
time curl --digest -u test:1324 -X POST http://0.0.0.0:20191/json_rpc -d '{"method":"make_integrated_address","params":{"standard_addres":"","payment_id":"4dda712c29fb7ba2"},"id":3}' -H 'ContentType: application/json'
echo "sleep 5 sec"
sleep 5
echo "call 5"
time curl --digest -u test:1324 -X POST http://0.0.0.0:20191/json_rpc -d '{"method":"make_integrated_address","params":{"standard_addres":"","payment_id":"4dda712c29fb7ba2"},"id":4}' -H 'ContentType: application/json'
ahmyi commented 6 years ago

Have you check synced status? Difference between single mode and multiple (set directory argument) in rpc is that using single file mode in stellite-wallet-rpc command won't start receiving commands until synced where else RPC will not tell you in any way whether you are in sync or not.

fractalyse commented 6 years ago

Daemon is fully synced. I'm using directory argument.

ahmyi commented 6 years ago

Check wallet sync status

fractalyse commented 6 years ago

How should I do this ?

ahmyi commented 6 years ago

look at where your rpc starts it will show some logs

ahmyi commented 6 years ago

It should display on rpc screen

fractalyse commented 6 years ago

Here is the log output from the logfile

2018-10-20 14:42:15.739     7f2e134f7740    INFO    logging contrib/epee/src/mlog.cpp:148   New log categories: *:WARNING,net:FATAL,net.p2p:FATAL,net.cn:FATAL,global:INFO,verify:FATAL,stacktrace:INFO,logging:INFO,msgwriter:INFO
2018-10-20 14:42:15.739     7f2e134f7740    INFO    msgwriter   src/common/scoped_message_writer.h:102  Stellite 'Titanium v3' (v1.2.4.2-release)
2018-10-20 14:42:15.739     7f2e134f7740    INFO    msgwriter   src/common/scoped_message_writer.h:102  Logging to /home/stellite/.stellite/wallet.log
2018-10-20 14:42:15.740     7f2e134f7740    WARN    wallet.rpc  src/wallet/wallet_rpc_server.cpp:212    RPC username/password is stored in file stellite-wallet-rpc.20191.login
2018-10-20 14:42:15.740     7f2e134f7740    INFO    global  contrib/epee/include/net/http_server_impl_base.h:70 Binding on 0.0.0.0:20191
2018-10-20 14:42:15.741     7f2e134f7740    WARN    wallet.rpc  src/wallet/wallet_rpc_server.cpp:1948   Starting wallet rpc server
2018-10-20 14:42:18.347 [RPC0]  WARN    wallet.wallet2  src/wallet/wallet2.cpp:2522 Loaded wallet keys file, with public address: Se3tSpcv6nTKvcgAxek2U19s7ChLGCh1DQFFUPt5ueCgUyiTP1vHrpwi2eMTizMgDdB3y9GiZvJ7vSMxzAmXcJxM23gSpjcXC
ahmyi commented 6 years ago

@fractalyse do u have discord? i can elaborate more via discord...https://discord.gg/ghuyD2V...find me @cryptoamity