-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Verify sender's balance before importing transaction to queue #746
Conversation
tomusdrw
commented
Mar 16, 2016
- Additional trace logging
Test fails |
Yes, sorry. Fixing it (after changing validation to include full transaction cost balance in test was insufficient). |
Could you please check that this does not affect the block propagation logic? It should not send out any blocks (and transactions) while the sync is still active, and I believe this was done by not sending the chain changed event until the sync is complete. |
ditto. also, right now the client and sync logic is extremely brittle. please place plentiful comments/documentation around any logic changed. |
let import = miner.import_transactions(vec![signed_transaction], |a: &Address| client.nonce(a)); | ||
let import = miner.import_transactions(vec![signed_transaction], |a: &Address| AccountDetails { | ||
nonce: client.nonce(a), | ||
balance: client.balance(a) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing comma.
After chat with @arkpar I've removed the change in client (it should be in separate pr anyway). |
ok - lgtm then. |
Verify sender's balance before importing transaction to queue