add Async to context

This commit is contained in:
ValarDragon
2018-07-05 20:05:17 -07:00
parent 6f94dd64c0
commit 27a31cae44
10 changed files with 19 additions and 24 deletions
+1
View File
@@ -22,6 +22,7 @@ type CoreContext struct {
Decoder auth.AccountDecoder
AccountStore string
UseLedger bool
Async bool
}
// WithChainID - return a copy of the context with an updated chainID
+1
View File
@@ -42,6 +42,7 @@ func NewCoreContextFromViper() CoreContext {
Decoder: nil,
AccountStore: "acc",
UseLedger: viper.GetBool(client.FlagUseLedger),
Async: viper.GetBool(client.FlagAsync),
}
}