CREDITSCOM / node

Credits Node is the main module that provide an opportunity to run a node and participate in CREDITS blockchain network.
https://developers.credits.com/
GNU Affero General Public License v3.0
151 stars 16 forks source link

[v417] SmartContract execution => Credits Node error: Transaction in progress #28

Open micmac0 opened 5 years ago

micmac0 commented 5 years ago

Describe the bug I tried to reproduce issue #27 with parameter to force smartcontract execution in config.ini. Chain was resolving around 10 blocks / 20 sec as initial conditions. The first 6 exections were ok but after I got 4 error like this :

com.credits.client.node.exception.NodeClientException: Credits Node error: Transaction in progress
    at com.credits.client.node.util.NodeClientUtils.processApiResponse(NodeClientUtils.java:31)
    at com.credits.client.node.service.NodeApiServiceImpl.callTransactionFlow(NodeApiServiceImpl.java:211)
    at com.credits.client.node.service.NodeApiServiceImpl.smartContractTransactionFlow(NodeApiServiceImpl.java:179)
    at org.credits.load.loadtest.DoSendSmartContractThread.doSend(DoSendSmartContractThread.java:161)
    at org.credits.load.loadtest.DoSendSmartContractThread.run(DoSendSmartContractThread.java:58)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:834)

please find logs in attached files log_TxInProgress.tar.gz

(my program is based on latest wallet-destop.jar v417)

ghost commented 5 years ago

On 13 successful calls in the executive (upper half), I see 13 successful saves in the blockchain (lower half). Part of the transaction was delayed (max. 26 seconds), the delay m. many different reasons, including the lag of the node itself. No transaction was lost please find logs in attached files