Skip to content

Commit

Permalink
Remove index bump
Browse files Browse the repository at this point in the history
  • Loading branch information
chadlagore committed Aug 26, 2017
1 parent fe4a0d6 commit e24d342
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions miner/miner.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,6 @@ func CloudBase(

b.Transactions = append([]*blockchain.Transaction{&cbTx}, b.Transactions...)

// Increment the input index of every transaction that has an input in the
// new block
for _, tx := range b.Transactions[1:] {
if tx.Inputs[0].BlockNumber == uint32(len(bc.Blocks)) {
tx.Inputs[0].Index++
}
}

return b
}

Expand Down

0 comments on commit e24d342

Please sign in to comment.