Skip to content

Commit

Permalink
Remove bogus code
Browse files Browse the repository at this point in the history
  • Loading branch information
marcopeereboom committed Oct 23, 2024
1 parent e0b9a67 commit 944da87
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions cmd/hemictl/hemictl.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ package main
import (
"bytes"
"context"
"encoding/hex"
"encoding/json"
"errors"
"flag"
Expand All @@ -28,7 +27,6 @@ import (
"github.com/btcsuite/btcd/chaincfg"
"github.com/btcsuite/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/txscript"
"github.com/btcsuite/btcd/wire"
"github.com/davecgh/go-spew/spew"
"github.com/juju/loggo"
"github.com/mitchellh/go-homedir"
Expand Down Expand Up @@ -476,25 +474,6 @@ func tbcdb() error {
}
fmt.Printf("%v\n", spew.Sdump(tx))

case "txbroadcast":
// XXX not a db command remove
txHex := args["tx"]
if txHex == "" {
return errors.New("tx: must be set")
}
var r io.Reader
if txHex == "-" {
r = os.Stdin
} else {
r = strings.NewReader(txHex)
}
tx := wire.NewMsgTx(0)
err = tx.Deserialize(hex.NewDecoder(r))
if err != nil {
return fmt.Errorf("tx broadcast deserialize: %w", err)
}
fmt.Printf("%v\n", spew.Sdump(tx))

case "spentoutputsbytxid":
txid := args["txid"]
if txid == "" {
Expand Down

0 comments on commit 944da87

Please sign in to comment.