mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 11:31:08 +03:00
rustfmt
This commit is contained in:
parent
30ad3bb7ae
commit
ba9a362d02
1 changed files with 4 additions and 1 deletions
|
@ -111,7 +111,10 @@ fn build_block(
|
||||||
// If this fails for *any* reason then fallback to an empty vec of txs.
|
// If this fails for *any* reason then fallback to an empty vec of txs.
|
||||||
// This will allow us to mine an "empty" block if the txpool is in an
|
// This will allow us to mine an "empty" block if the txpool is in an
|
||||||
// invalid (and unexpected) state.
|
// invalid (and unexpected) state.
|
||||||
let txs = tx_pool.read().prepare_mineable_transactions().unwrap_or(vec![]);
|
let txs = tx_pool
|
||||||
|
.read()
|
||||||
|
.prepare_mineable_transactions()
|
||||||
|
.unwrap_or(vec![]);
|
||||||
|
|
||||||
// build the coinbase and the block itself
|
// build the coinbase and the block itself
|
||||||
let fees = txs.iter().map(|tx| tx.fee()).sum();
|
let fees = txs.iter().map(|tx| tx.fee()).sum();
|
||||||
|
|
Loading…
Reference in a new issue