Nikolay Volf
db86094b03
Produce block always on updated transaction pool state ( #5227 )
...
* make sure return ready iterator once state is updated
* update sc_basic_authorship tests
* update node tests
* fix manual seal
* actually fix service test
* add tests
* Update client/basic-authorship/src/basic_authorship.rs
Co-Authored-By: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* helper function
* review suggestions
* warning and continue
* add debug log
* use futures::chennel::oneshot
* use declaration bound
* no option for updated_at
* no allocation
* ready_at / ready
* Update client/transaction-pool/src/lib.rs
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/transaction-pool/src/lib.rs
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/transaction-pool/src/lib.rs
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/transaction-pool/src/lib.rs
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/transaction-pool/src/lib.rs
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/transaction-pool/src/lib.rs
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2020-03-17 16:24:04 +01:00
Seun Lanlege
f26f703ad4
removes use of sc_client::Client from sc_basic_authorship ( #5050 )
...
* removes use of sc-client from sc-basic-authorship
* refactor use of ProposerFactory
* correct dep path
2020-02-27 17:12:00 +01:00
Nikolay Volf
86ab0cb4d9
Revalidation queue for transaction pool ( #4781 )
...
* Revalidation queeue.
* add docs and license
* move test
* refactor worker to async/await
* address review
* fix warnings
* update Cargo.lock
* move background task to service
* use tomusdrw loop
* naming
* return From::from
* add doc comment
* add more doc comments
* fix merge bug
* add doc comment for test function
* Update client/transaction-pool/src/testing/pool.rs
Co-Authored-By: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* more review fixes
* refactor to allow service keep background tasks from isntantiated subsystems
* use const delay
* fix fallout
* remove fallout
* remove already moved test
* fix doc test
* add valid_at helper
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
2020-02-17 16:48:24 +03:00
Wei Tang
c7b09b642a
Refactor BlockImportParams to be non_exhaustive ( #4936 )
...
* Refactor BlockImportParams to be non_exhaustive
* Fix cargo check compile
2020-02-17 10:18:53 +01:00
Seun Lanlege
d3a3e288b6
Adds fork-awareness and finalization notifications to transaction pool watchers. ( #4740 )
...
* adds finalization support to sc-transaction-pool using MaintainedTransactionPool for finalization events
* adds TransactionStatus::Retracted, notify watchers of retracted blocks, finalized now finalizes, transactions for current finalized -> last finalized block
* adds last_finalized to ChainApi, use generic BlockT for ChainEvent
* fix tests
* Apply suggestions from code review
Co-Authored-By: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* tests
* fix tests, docs, lazily dedupe pruned hashes
* fix tests, Cargo.lock
* Apply suggestions from code review
Co-Authored-By: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* remove tree_route, last_finalized from ChainApi, add block hash to Finalization and Retracted events
* prune finality watchers
* fix tests
* remove HeaderBackend bound from FullChainApi
* code style nits, terminate stream in finality_timeout
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
2020-02-14 14:44:58 +01:00
Bastian Köcher
709a899f9d
Cleanup transaction pool deps ( #4782 )
...
* Cleanup transaction pool deps
* Fix it properly
* Fix doc test
2020-01-31 12:40:32 +01:00
Nikolay Volf
94a187f291
Transaction queue tests update ( #4734 )
...
* shuffle tests
* update tests
* inc_nonce -> increment_nonce
2020-01-27 04:22:04 -08:00
Seun LanLege
9cea98e950
Manual Seal ( #4143 )
...
* instant/manual seal
unbounded queues are evil
Apply suggestions from code review
Co-Authored-By: Robert Habermeier <rphmeier@gmail.com >
add fork tests, docs, remove todos
moar docs
Update client/consensus/manual-seal/src/rpc.rs
Co-Authored-By: Robert Habermeier <rphmeier@gmail.com >
remove unbound generic, parameter, docs, deps, code style changes
Apply suggestions from code review
Co-Authored-By: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
code style chnges
remove unused deps, remove dep renames, check if block is empty before importing, use ? for error propagation
fix tests
log errors for instant seal
use debug
code style changes, updated copyright dates
use txpool::Pool instead of BasicPool, code style changes
fixed tests
* fix tests
* requested changes from review
* check inherents len
* rebase
2020-01-27 10:59:40 +01:00