Skip to content

Commit

Permalink
Test fix & fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
max-sanchez committed Jul 23, 2024
1 parent fcf7354 commit c9dbc5f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/hemictl/hemictl.go
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ func tbcdb() error {
return fmt.Errorf("chainhash: %w", err)
}

tx, err := s.TxById(ctx, chtxid)
tx, _, err := s.TxById(ctx, chtxid)
if err != nil {
return fmt.Errorf("block by txid: %w", err)
}
Expand Down
3 changes: 2 additions & 1 deletion database/tbcd/level/level.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ import (
"encoding/binary"
"errors"
"fmt"
"github.com/btcsuite/btcd/wire"
"math/big"
"net"
"sync"
"time"

"github.com/btcsuite/btcd/wire"

"github.com/btcsuite/btcd/blockchain"
"github.com/btcsuite/btcd/chaincfg/chainhash"
"github.com/davecgh/go-spew/spew"
Expand Down
1 change: 0 additions & 1 deletion service/tbc/tbc.go
Original file line number Diff line number Diff line change
Expand Up @@ -1709,7 +1709,6 @@ func (s *Server) TxById(ctx context.Context, txId *chainhash.Hash) (*wire.MsgTx,
}

func feesFromTransactions(txs []*btcutil.Tx) error {

for idx, tx := range txs {
for _, txIn := range tx.MsgTx().TxIn {
if idx == 0 {
Expand Down
3 changes: 2 additions & 1 deletion service/tbc/tbc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/hemilabs/heminetwork/database/tbcd"
"io"
"net"
"os"
Expand All @@ -21,6 +20,8 @@ import (
"testing"
"time"

"github.com/hemilabs/heminetwork/database/tbcd"

"github.com/btcsuite/btcd/chaincfg"
"github.com/btcsuite/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/wire"
Expand Down

0 comments on commit c9dbc5f

Please sign in to comment.