forked from cerc-io/plugeth
Added a length for copy
This commit is contained in:
parent
c0cad0b534
commit
6d28bf534f
@ -288,7 +288,7 @@ func (sm *StateManager) AccumelateRewards(block *Block) error {
|
|||||||
// Reward amount of ether to the coinbase address
|
// Reward amount of ether to the coinbase address
|
||||||
addr.AddFee(CalculateBlockReward(block, len(block.Uncles)))
|
addr.AddFee(CalculateBlockReward(block, len(block.Uncles)))
|
||||||
|
|
||||||
var acc []byte
|
acc := make([]byte, len(block.Coinbase))
|
||||||
copy(acc, block.Coinbase)
|
copy(acc, block.Coinbase)
|
||||||
sm.procState.UpdateAccount(acc, addr)
|
sm.procState.UpdateAccount(acc, addr)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user