Skip to content

Commit

Permalink
chore: ChainPollInterval typo
Browse files Browse the repository at this point in the history
  • Loading branch information
randomshinichi committed Sep 11, 2019
1 parent 314997b commit beab494
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions aeternity/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ type ClientConfig struct {

// TuningConfig fine tuning of parameters of the client
type TuningConfig struct {
ChainPollInteval int64 `json:"chain_poll_interval" yaml:"chain_poll_interval" mapstructure:"chain_poll_interval"`
ChainPollInterval int64 `json:"chain_poll_interval" yaml:"chain_poll_interval" mapstructure:"chain_poll_interval"`
ChainTimeout int64 `json:"chain_timeout" yaml:"chain_timeout" mapstructure:"chain_timeout"`
CryptoKdfMemlimit uint32 `json:"crypto_kdf_memlimit" yaml:"crypto_kdf_memlimit" mapstructure:"crypto_kdf_memlimit"`
CryptoKdfOpslimit uint32 `json:"crypto_kdf_opslimit" yaml:"crypto_kdf_opslimit" mapstructure:"crypto_kdf_opslimit"`
Expand Down Expand Up @@ -153,7 +153,7 @@ var Config = ProfileConfig{
Offline: false, // UNUSED
},
Tuning: TuningConfig{
ChainPollInteval: 100,
ChainPollInterval: 100,
ChainTimeout: 5000,
CryptoKdfMemlimit: 1024 * 32, // 32MB
CryptoKdfOpslimit: 3,
Expand Down
2 changes: 1 addition & 1 deletion aeternity/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ func WaitForTransactionForXBlocks(c getTransactionByHashHeighter, txHash string,
bh := big.Int(tx.BlockHeight)
return bh.Uint64(), *tx.BlockHash, nil
}
time.Sleep(time.Millisecond * time.Duration(Config.Tuning.ChainPollInteval))
time.Sleep(time.Millisecond * time.Duration(Config.Tuning.ChainPollInterval))
}
return 0, "", fmt.Errorf("%v blocks have gone by and %v still isn't in a block", x, txHash)
}
Expand Down

0 comments on commit beab494

Please sign in to comment.