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