Skip to content

Commit

Permalink
for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Lawliet-Chan committed Aug 1, 2024
1 parent 6a49fbe commit 82e6b6c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions core/txpool/ordered.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,14 @@ func (ot *orderedTxns) delete(txnHash Hash) {

func (ot *orderedTxns) Deletes(txnHashes []Hash) {
fmt.Println("txpool count = ", ot.Size())
for _, txn := range ot.txns {
params := make(map[string]any)
err := txn.BindJsonParams(params)
if err != nil {
panic(err)
}
fmt.Println("txn is: ", params)
}
fmt.Println("delete txs count = ", len(txnHashes))
for _, hash := range txnHashes {
ot.delete(hash)
Expand Down

0 comments on commit 82e6b6c

Please sign in to comment.