can sync with segnet in hard mode
lots of changes but they seem to work
This commit is contained in:
1 parent
a955a428a7
commit
0d3639435f
7 files changed
+135
-40
No files matched your search
+6
-5
@@ -4,11 +4,12 @@ import (
|
||||
"bytes"
|
||||
"encoding/binary"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
|
||||
"github.com/btcsuite/btcd/btcec"
|
||||
"github.com/btcsuite/btcd/wire"
|
||||
"github.com/btcsuite/btcutil"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
)
|
||||
|
||||
var MAX_SLICE_LENGTH = 65535
|
||||
@@ -21,12 +22,12 @@ type CommitHeight uint64
|
||||
|
||||
// Subsatoshi amount (Micro-Satoshi, 1/1000th)
|
||||
// Should be a signed int to account for negative fees
|
||||
//
|
||||
//
|
||||
// "In any science-fiction movie, anywhere in the galaxy, currency is referred
|
||||
// to as 'credits.'"
|
||||
// --Sam Humphries. Ebert, Roger (1999). Ebert's bigger little movie
|
||||
// glossary. Andrews McMeel. p. 172.
|
||||
//
|
||||
//
|
||||
// https:// en.wikipedia.org/wiki/List_of_fictional_currencies
|
||||
// https:// en.wikipedia.org/wiki/Fictional_currency#Trends_in_the_use_of_fictional_currencies
|
||||
// http:// tvtropes.org/pmwiki/pmwiki.php/Main/WeWillSpendCreditsInTheFuture
|
||||
@@ -557,7 +558,7 @@ func readElement(r io.Reader, element interface{}) error {
|
||||
var txins []*wire.TxIn
|
||||
for i := uint8(0); i < numScripts; i++ {
|
||||
outpoint := new(wire.OutPoint)
|
||||
txin := wire.NewTxIn(outpoint, nil)
|
||||
txin := wire.NewTxIn(outpoint, nil, nil)
|
||||
err = readElement(r, &txin)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in new issue
Block a user