diff options
author | Gav Wood <i@gavwood.com> | 2015-04-05 22:33:51 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2015-04-05 22:33:51 +0800 |
commit | 8afc2ab1e11b1b2af4b9642c1075b91e2768bb48 (patch) | |
tree | e56e211fb77290e7eb69fe90545e4e33c88f99af | |
parent | 684aafdbd19814e40325edd2a51683578e867b1e (diff) | |
download | dexon-solidity-8afc2ab1e11b1b2af4b9642c1075b91e2768bb48.tar dexon-solidity-8afc2ab1e11b1b2af4b9642c1075b91e2768bb48.tar.gz dexon-solidity-8afc2ab1e11b1b2af4b9642c1075b91e2768bb48.tar.bz2 dexon-solidity-8afc2ab1e11b1b2af4b9642c1075b91e2768bb48.tar.lz dexon-solidity-8afc2ab1e11b1b2af4b9642c1075b91e2768bb48.tar.xz dexon-solidity-8afc2ab1e11b1b2af4b9642c1075b91e2768bb48.tar.zst dexon-solidity-8afc2ab1e11b1b2af4b9642c1075b91e2768bb48.zip |
Decent transaction import result provision.
Give network a hint about what's going on for peer backoffs.
Avoid sleeping in main loop when there's still work on.
-rw-r--r-- | blockchain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/blockchain.cpp b/blockchain.cpp index ffb55da3..21345abf 100644 --- a/blockchain.cpp +++ b/blockchain.cpp @@ -98,7 +98,7 @@ void doBlockchainTests(json_spirit::mValue& _v, bool _fillin) { mObject tx = txObj.get_obj(); importer.importTransaction(tx); - if (!txs.attemptImport(importer.m_transaction.rlp())) + if (txs.import(importer.m_transaction.rlp()) != ImportResult::Success) cnote << "failed importing transaction\n"; } |