coinbase first
This commit is contained in:
parent
fee9bfd3af
commit
ffd08b1afd
|
@ -335,7 +335,7 @@ func handleTx(request []byte, bc *Blockchain) {
|
||||||
}
|
}
|
||||||
|
|
||||||
cbTx := NewCoinbaseTX(miningAddress, "")
|
cbTx := NewCoinbaseTX(miningAddress, "")
|
||||||
txs = append(txs, cbTx)
|
txs = append([]*block.Transaction{cbTx}, txs...)
|
||||||
|
|
||||||
newBlock := bc.MineBlock(txs)
|
newBlock := bc.MineBlock(txs)
|
||||||
UTXOSet := UTXOSet{bc}
|
UTXOSet := UTXOSet{bc}
|
||||||
|
|
Loading…
Reference in New Issue