You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When new block is included, processed transaction needs to be removed from txpool. Steps for implementing this:
remove tx from by_hash
remove tx from by_gas_price
remove tx from by_dependenct
Go over all remove tx outputs and compare them with coins. If it is variable output, check if dependent tx has maching input, if not, remove it. Go over all dependency and decrease their depth.
go over all removed tx outputs and compare them with contracts. Set origin to None, gas_price to MAX and decrease depth for it and all its dependencies found inside used_by.
If block is for some reason reverted, transaction of that block need to be reinjected inside txpool for usage in next block. We can still use block_update function. Check how does reverting happen in our PoS consensus.
this is medium effort to implement and it is hard requirement for client.
The text was updated successfully, but these errors were encountered:
When new block is included, processed transaction needs to be removed from txpool. Steps for implementing this:
by_hash
by_gas_price
by_dependenct
coins
. If it is variable output, check if dependent tx has maching input, if not, remove it. Go over all dependency and decrease their depth.contracts
. Setorigin
to None,gas_price
to MAX and decrease depth for it and all its dependencies found insideused_by
.If block is for some reason reverted, transaction of that block need to be reinjected inside txpool for usage in next block. We can still use
block_update
function. Check how does reverting happen in our PoS consensus.this is medium effort to implement and it is hard requirement for client.
The text was updated successfully, but these errors were encountered: