Skip to content

Commit

Permalink
chore: apply make style gofmt formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
grdddj authored and martinboehm committed Nov 25, 2024
1 parent 04a5d8d commit 66b4ddb
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion bchain/coins/ecash/ecashparser.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package ecash
import (
"fmt"

"github.com/pirk/ecashutil"
"github.com/martinboehm/btcutil"
"github.com/martinboehm/btcutil/chaincfg"
"github.com/martinboehm/btcutil/txscript"
"github.com/pirk/ecashaddr-converter/address"
"github.com/pirk/ecashutil"
"github.com/trezor/blockbook/bchain"
"github.com/trezor/blockbook/bchain/coins/btc"
)
Expand Down
17 changes: 8 additions & 9 deletions bchain/coins/firo/firoparser.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ import (
)

const (
OpZeroCoinMint = 0xc1
OpZeroCoinSpend = 0xc2
OpSigmaMint = 0xc3
OpSigmaSpend = 0xc4
OpLelantusMint = 0xc5
OpLelantusJMint = 0xc6
OpLelantusJoinSplit = 0xc7
OpZeroCoinMint = 0xc1
OpZeroCoinSpend = 0xc2
OpSigmaMint = 0xc3
OpSigmaSpend = 0xc4
OpLelantusMint = 0xc5
OpLelantusJMint = 0xc6
OpLelantusJoinSplit = 0xc7
OpLelantusJoinSplitPayload = 0xc9

MainnetMagic wire.BitcoinNet = 0xe3d9fef1
Expand Down Expand Up @@ -194,7 +194,6 @@ func (p *FiroParser) ParseBlock(b []byte) (*bchain.Block, error) {
break
}
}


if !isAllZero {
// hash data
Expand Down Expand Up @@ -344,7 +343,7 @@ type MTPHashDataRoot struct {
}

type MTPHashData struct {
BlockMTP [128][128]uint64
BlockMTP [128][128]uint64
}

type MTPBlockHeader struct {
Expand Down
2 changes: 1 addition & 1 deletion build/tools/trezor-common/sync-coins.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//usr/bin/go run $0 $@ ; exit
// usr/bin/go run $0 $@ ; exit
package main

import (
Expand Down
4 changes: 3 additions & 1 deletion common/jsonnumber.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ import (
)

// 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
type JSONNumber string

Expand Down

0 comments on commit 66b4ddb

Please sign in to comment.