Modify AnteHandler to take a simulate boolean parameter

This commit is contained in:
Alessio Treglia
2018-08-25 20:12:14 +01:00
parent 7e8feec738
commit 76a16ab288
9 changed files with 93 additions and 52 deletions
+1 -1
View File
@@ -5,4 +5,4 @@ type Handler func(ctx Context, msg Msg) Result
// AnteHandler authenticates transactions, before their internal messages are handled.
// If newCtx.IsZero(), ctx is used instead.
type AnteHandler func(ctx Context, tx Tx) (newCtx Context, result Result, abort bool)
type AnteHandler func(ctx Context, tx Tx, simulate bool) (newCtx Context, result Result, abort bool)