mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-28 14:27:16 +00:00
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
|
||||
addr.AddFee(CalculateBlockReward(block, len(block.Uncles)))
|
||||
|
||||
var acc []byte
|
||||
acc := make([]byte, len(block.Coinbase))
|
||||
copy(acc, block.Coinbase)
|
||||
sm.procState.UpdateAccount(acc, addr)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user