add getalltxs, dup checks
Start of double spend detection for mempool and reorgs
This commit is contained in:
1 parent
25d90f5345
commit
63b5926e01
3 files changed
+77
-1
No files matched your search
@@ -144,11 +144,29 @@ func Shellparse(cmdslice []string) error {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
if cmd == "txs" {
|
||||
err = Txs(args)
|
||||
if err != nil {
|
||||
fmt.Printf("txs error: %s\n", err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
fmt.Printf("Command not recognized. type help for command list.\n")
|
||||
return nil
|
||||
}
|
||||
|
||||
func Txs(args []string) error {
|
||||
alltx, err := SCon.TS.GetAllTxs()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
for i, tx := range alltx {
|
||||
fmt.Printf("tx %d %s\n", i, uspv.TxToString(tx))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Bal prints out your score.
|
||||
func Bal(args []string) error {
|
||||
if SCon.TS == nil {
|
||||
|
||||
Reference in new issue
Block a user