mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-24 08:49:29 +00:00
Hack for miner problem added w/ note
@maranh please check
This commit is contained in:
parent
9c6aca7893
commit
d811920d8b
1 changed files with 3 additions and 0 deletions
|
|
@ -119,6 +119,9 @@ func (miner *Miner) listener() {
|
||||||
miner.block.SetUncles(miner.uncles)
|
miner.block.SetUncles(miner.uncles)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME @ maranh, first block doesn't need this. Everything after the first block does.
|
||||||
|
// Please check and fix
|
||||||
|
miner.ethereum.StateManager().Prepare(miner.block.State(), miner.block.State())
|
||||||
// Apply all transactions to the block
|
// Apply all transactions to the block
|
||||||
miner.ethereum.StateManager().ApplyTransactions(miner.block, miner.block.Transactions())
|
miner.ethereum.StateManager().ApplyTransactions(miner.block, miner.block.Transactions())
|
||||||
miner.ethereum.StateManager().AccumelateRewards(miner.block)
|
miner.ethereum.StateManager().AccumelateRewards(miner.block)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue