Added a length for copy

pull/150/head
obscuren 11 years ago
parent c0cad0b534
commit 6d28bf534f
  1. 2
      ethchain/state_manager.go

@ -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…
Cancel
Save