From e24d34216c342551169e0cd200597c8920defd2e Mon Sep 17 00:00:00 2001 From: chadlagore Date: Sat, 26 Aug 2017 14:48:12 -0700 Subject: [PATCH] Remove index bump --- miner/miner.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/miner/miner.go b/miner/miner.go index dbfd8d0..0cd152b 100644 --- a/miner/miner.go +++ b/miner/miner.go @@ -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 }