Skip to content

Commit

Permalink
Fix auto-tx flag
Browse files Browse the repository at this point in the history
  • Loading branch information
p-offtermatt committed Nov 21, 2023
1 parent 7f69275 commit 7fc0ab6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion cometmock/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ or the system time between creating the genesis request and producing the first
true,
)

abci_client.GlobalClient.AutoIncludeTx = c.Bool("auto-include-tx")
abci_client.GlobalClient.AutoIncludeTx = c.Bool("auto-tx")
fmt.Printf("Auto include tx: %t\n", abci_client.GlobalClient.AutoIncludeTx)

// initialize chain
Expand Down
1 change: 0 additions & 1 deletion cometmock/rpc_server/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,6 @@ func BroadcastTxAsync(ctx *rpctypes.Context, tx types.Tx) (*ctypes.ResultBroadca
return &ctypes.ResultBroadcastTx{}, nil
}

// BroadcastTx delivers a transaction to the ABCI client, includes it in the next block, then returns.
func BroadcastTx(tx *types.Tx) (*ctypes.ResultBroadcastTxCommit, error) {
abci_client.GlobalClient.Logger.Info(
"BroadcastTxs called", "tx", tx)
Expand Down

0 comments on commit 7fc0ab6

Please sign in to comment.