chore: apply make style gofmt formatting
This commit is contained in:
parent
04a5d8d95d
commit
66b4ddbe01
@ -3,11 +3,11 @@ package ecash
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/pirk/ecashutil"
|
|
||||||
"github.com/martinboehm/btcutil"
|
"github.com/martinboehm/btcutil"
|
||||||
"github.com/martinboehm/btcutil/chaincfg"
|
"github.com/martinboehm/btcutil/chaincfg"
|
||||||
"github.com/martinboehm/btcutil/txscript"
|
"github.com/martinboehm/btcutil/txscript"
|
||||||
"github.com/pirk/ecashaddr-converter/address"
|
"github.com/pirk/ecashaddr-converter/address"
|
||||||
|
"github.com/pirk/ecashutil"
|
||||||
"github.com/trezor/blockbook/bchain"
|
"github.com/trezor/blockbook/bchain"
|
||||||
"github.com/trezor/blockbook/bchain/coins/btc"
|
"github.com/trezor/blockbook/bchain/coins/btc"
|
||||||
)
|
)
|
||||||
|
|||||||
@ -14,13 +14,13 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
OpZeroCoinMint = 0xc1
|
OpZeroCoinMint = 0xc1
|
||||||
OpZeroCoinSpend = 0xc2
|
OpZeroCoinSpend = 0xc2
|
||||||
OpSigmaMint = 0xc3
|
OpSigmaMint = 0xc3
|
||||||
OpSigmaSpend = 0xc4
|
OpSigmaSpend = 0xc4
|
||||||
OpLelantusMint = 0xc5
|
OpLelantusMint = 0xc5
|
||||||
OpLelantusJMint = 0xc6
|
OpLelantusJMint = 0xc6
|
||||||
OpLelantusJoinSplit = 0xc7
|
OpLelantusJoinSplit = 0xc7
|
||||||
OpLelantusJoinSplitPayload = 0xc9
|
OpLelantusJoinSplitPayload = 0xc9
|
||||||
|
|
||||||
MainnetMagic wire.BitcoinNet = 0xe3d9fef1
|
MainnetMagic wire.BitcoinNet = 0xe3d9fef1
|
||||||
@ -195,7 +195,6 @@ func (p *FiroParser) ParseBlock(b []byte) (*bchain.Block, error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if !isAllZero {
|
if !isAllZero {
|
||||||
// hash data
|
// hash data
|
||||||
mtpHashData := MTPHashData{}
|
mtpHashData := MTPHashData{}
|
||||||
@ -344,7 +343,7 @@ type MTPHashDataRoot struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type MTPHashData struct {
|
type MTPHashData struct {
|
||||||
BlockMTP [128][128]uint64
|
BlockMTP [128][128]uint64
|
||||||
}
|
}
|
||||||
|
|
||||||
type MTPBlockHeader struct {
|
type MTPBlockHeader struct {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
//usr/bin/go run $0 $@ ; exit
|
// usr/bin/go run $0 $@ ; exit
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|||||||
@ -6,7 +6,9 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// JSONNumber is used instead of json.Number after upgrade to go 1.14
|
// JSONNumber is used instead of json.Number after upgrade to go 1.14
|
||||||
// to handle data which can be numbers in double quotes or possibly not numbers at all
|
//
|
||||||
|
// to handle data which can be numbers in double quotes or possibly not numbers at all
|
||||||
|
//
|
||||||
// see https://github.com/golang/go/issues/37308
|
// see https://github.com/golang/go/issues/37308
|
||||||
type JSONNumber string
|
type JSONNumber string
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user