Skip to content

Commit

Permalink
chore: WaitForTransactionForXBlocks could really use a config paramet…
Browse files Browse the repository at this point in the history
…er that has a suggested waiting time in blocks
  • Loading branch information
randomshinichi committed Nov 11, 2019
1 parent b9fb5aa commit ae20c6a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ type ClientConfig struct {
// height to determine a transaction's TTL.
TTL uint64 `json:"ttl" yaml:"ttl" mapstructure:"ttl"`
// Fee is a default transaction fee that should be big enough for most transaction types.
Fee *big.Int `json:"fee" yaml:"fee" mapstructure:"fee"`
Fee *big.Int `json:"fee" yaml:"fee" mapstructure:"fee"`
// WaitBlocks is a suggested maximum amount of time (in blocks) to wait for a transaction to be included in a block.
WaitBlocks uint64 `json:"txwaitblocks" yaml:"txwaitblocks" mapstructure:"txwaitblocks"`
Names AensConfig `json:"names" yaml:"names" mapstructure:"names"`
Contracts ContractConfig `json:"contracts" yaml:"contracts" mapstructure:"contracts"`
Oracles OracleConfig `json:"oracles" yaml:"oracles" mapstructure:"oracles"`
Expand Down Expand Up @@ -161,6 +163,7 @@ var Client = ClientConfig{
GasPrice: big.NewInt(1e9),
TTL: 500,
Fee: big.NewInt(2e14),
WaitBlocks: 10,
Names: AensConfig{
NameTTL: 500,
ClientTTL: 500,
Expand Down

0 comments on commit ae20c6a

Please sign in to comment.