poanetwork / parity-ethereum

Fast, light, robust Ethereum implementation.
https://parity.io
Other
10 stars 12 forks source link

Notifying Parity Consensus Engines about Transaction Queue changes #123

Closed dforsten closed 5 years ago

dforsten commented 5 years ago

Added a "on_transactions_imported()" function to the Consensus Engine trait, called after successful import of new transactions.

Also added a "queued_transactions()" function to the EngineClient trait to query queued transactions.

Using "queued_transactions()" to trigger the creation of a new block when the transaction queue length trigger is reached (currently set to 1)

Registering the Client instance with the hbbft Consensus Engine in test helpers to be able to access EngineClient functions.