Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Unspent Transaction Outputs (UTXOs) are created by transactions and allow the owner of an associated address to spend a specific amount.
1
vote
1
answer
69
views
I can't parse the UTXO from the chainstate
trying to read the uvarint from this, i am getting an invalid code with invalid block height:
package main
import (
"bytes"
"encoding/binary"
"encoding/hex"
"log"
)
func main() {
utxo … , _ := hex.DecodeString("803b321c00148a259896c97cd63c06530ac09f37a8dc28c5b2ee")
utxoReader := bytes.NewReader(utxo)
code, _ := binary.ReadUvarint(utxoReader)
log.Println("code", code) …
3
votes
I can't parse the UTXO from the chainstate
I got it :_)
I used binary.ReadUvarint which not the same as ReadVarint in the Bitcoin Core (https://github.com/bitcoin/bitcoin/blob/0d509bab45d292caeaf34600e57b5928757c6005/src/serialize.h#L465)
So f …