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.
This commit is contained in:
Gav Wood 2015-04-05 16:33:51 +02:00
parent 684aafdbd1
commit 8afc2ab1e1

View File

@ -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";
}