Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Expose transaction insertion in sync lib #609

Merged
merged 5 commits into from Mar 10, 2016
Merged

Expose transaction insertion in sync lib #609

merged 5 commits into from Mar 10, 2016

Conversation

NikVolf
Copy link
Contributor

@NikVolf NikVolf commented Mar 5, 2016

tiny one, should go after 607

@NikVolf NikVolf added the A0-pleasereview 🤓 Pull request needs code review. label Mar 5, 2016
@@ -30,7 +30,7 @@ pub enum SyncMessage {
/// Hashes of blocks imported to blockchain
good: Vec<H256>,
/// Hashes of blocks not imported to blockchain
bad: Vec<H256>,
retracted: Vec<H256>,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

retracted != bad. Bad blocks are the ones which were not imported due to an error. You need additional field for dead blocks - ones which were removed from the canonical chain.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is from https://github.com/ethcore/parity/pull/607
review/merge it first)

@arkpar arkpar added A4-gotissues 💥 Pull request is reviewed and has significant issues which must be addressed. and removed A0-pleasereview 🤓 Pull request needs code review. labels Mar 5, 2016
@NikVolf NikVolf added A3-inprogress ⏳ Pull request is in progress. No review needed at this stage. A0-pleasereview 🤓 Pull request needs code review. and removed A4-gotissues 💥 Pull request is reviewed and has significant issues which must be addressed. A3-inprogress ⏳ Pull request is in progress. No review needed at this stage. labels Mar 9, 2016
@NikVolf NikVolf mentioned this pull request Mar 10, 2016
@NikVolf
Copy link
Contributor Author

NikVolf commented Mar 10, 2016

required for #587

@NikVolf NikVolf changed the title Expose transaction queue in sync lib Expose transaction insertion in sync lib Mar 10, 2016
where T: Fn(&Address) -> U256
{
let mut queue = self.transaction_queue.lock().unwrap();
queue.add(transaction, fetch_nonce);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add returns a result right now so this will be a warning (after merge with master). We should forward the result up to sync/src/lib.rs

@tomusdrw tomusdrw added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Mar 10, 2016
@tomusdrw tomusdrw mentioned this pull request Mar 10, 2016
gavofyork added a commit that referenced this pull request Mar 10, 2016
Expose transaction insertion in sync lib
@gavofyork gavofyork merged commit 5764ec5 into master Mar 10, 2016
@gavofyork gavofyork deleted the tx-rpc-expose branch March 10, 2016 14:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants