Skip to content

Commit

Permalink
fix: Rebase fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
xxuejie committed Sep 19, 2019
1 parent 22af342 commit e1634a0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tx-pool/src/block_assembler/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ impl BlockAssembler {
}
let parent_hash = uncle.header().parent_hash();
if &uncle.difficulty() != current_epoch_ext.difficulty()
|| uncle.epoch() != epoch_number
|| uncle.epoch().number() != epoch_number
|| snapshot.get_block_number(&uncle.hash()).is_some()
|| snapshot.is_uncle(&uncle.hash())
|| !(uncles.iter().any(|u| u.hash() == parent_hash)
Expand Down
5 changes: 4 additions & 1 deletion tx-pool/src/process/block_template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,10 @@ impl Future for BlockTemplateBuilder {
difficulty: self.current_epoch.difficulty().clone(),
current_time: current_time.into(),
number: candidate_number.into(),
epoch: self.current_epoch.number().into(),
epoch: self
.current_epoch
.number_with_fraction(candidate_number)
.into(),
parent_hash: tip_hash.unpack(),
cycles_limit: cycles_limit.into(),
bytes_limit: bytes_limit.into(),
Expand Down
4 changes: 2 additions & 2 deletions tx-pool/src/process/submit_txs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ fn verify_rtxs(
&tx,
snapshot,
tip_number + 1,
epoch_number,
epoch_number.clone(),
tip_header.hash(),
consensus,
)
Expand All @@ -304,7 +304,7 @@ fn verify_rtxs(
&tx,
snapshot,
tip_number + 1,
epoch_number,
epoch_number.clone(),
tip_header.hash(),
consensus,
snapshot,
Expand Down

0 comments on commit e1634a0

Please sign in to comment.