blockchain_go
blockchain_go copied to clipboard
A simplified blockchain implementation in Golang
``` acc, validOutputs := UTXOSet.FindSpendableOutputs(pubKeyHash, amount) if acc < amount { log.Panic("ERROR: Not enough funds") } // Build a list of inputs for txid, outs := range validOutputs { txID,...
This bug may lead to spend the UTXO which isn't owned by TXInput.PubKey
In branch part_5, blockchain.go#L109: https://github.com/Jeiwan/blockchain_go/blob/201e7a165214ca4d7287c83a23d65e1c05578e48/blockchain.go#L109 The second judgment condition `accumulated < amount` is not necessary. It only works when `amount
Tks for u good job. I find some problem in branch part5 file: base58.go function Base58Encode: //for b := range input { for _, b := range input { if...
The problematic code looks like this: ``` // NewMerkleTree creates a new Merkle tree from a sequence of data func NewMerkleTree(data [][]byte) *MerkleTree { var nodes []MerkleNode if len(data)%2 !=...
for bug in case mentioned in #21
I've successfully changed the data inside db, I thought changes that was done by a node is visible to the other nodes
First of all, thank you Ivan for sharing us this project. It's a really great help for us learning the inner workings of blockchain technology. I enjoyed it very much....
This is Super basic check to prevent Mine Padding i could not replicate the account balance doubling reported in #36 Before Self Send TXN: ``` NODE_ID=3000 ./blockchain_go getbalance -address 1CLQCfLafpQqGuye9fRLhrmZg8HzqZtJZw...
Thank you for inspiration! I will make Python Port is currently going development [here](https://github.com/hskang9/blockchain_python)