helium / blockchain-core

Apache License 2.0
213 stars 85 forks source link

Attempt to send txn immediately #1371

Closed PaulVMo closed 2 years ago

PaulVMo commented 2 years ago

Currently, when a transaction is submitted to the blockchain txn manager, it is added to the transaction cache and then only sent to the CG after the next block add event has been processed. This change also attempts to process newly added transaction immediately so they are sent to the CG sooner. This change may help smooth out filling of txn buffers for CG members and avoid large oscillations in txns per block.