Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions helper/call.go
Original file line number Diff line number Diff line change
Expand Up @@ -1088,6 +1088,8 @@ func (c *ContractCaller) GetStartListenBlock(rootChainType string) uint64 {
return GetConfig().TronStartListenBlock
} else if rootChainType == hmTypes.RootChainTypeEth {
return GetConfig().EthStartListenBlock
} else if rootChainType == hmTypes.RootChainTypeBsc {
return GetConfig().BscStartListenBlock
} else {
return 0
}
Expand Down
2 changes: 2 additions & 0 deletions helper/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ type Configuration struct {

TronStartListenBlock uint64 `mapstructure:"tron_start_listen_block"` // tron chain start listen block on bridge
EthStartListenBlock uint64 `mapstructure:"eth_start_listen_block"` // eth chain start listen block on bridge
BscStartListenBlock uint64 `mapstructure:"bsc_start_listen_block"` // bsc chain start listen block on bridge

EthUnconfirmedTxsBusyLimit int `mapstructure:"eth_unconfirmed_txs_busy_limit"` // the busy limit of unconfirmed txs on heimdall for eth
BscUnconfirmedTxsBusyLimit int `mapstructure:"bsc_unconfirmed_txs_busy_limit"` // the busy limit of unconfirmed txs on heimdall for bsc
Expand Down Expand Up @@ -317,6 +318,7 @@ func GetDefaultHeimdallConfig() Configuration {
TronGridApiKey: DefaultTronGridApiKey,
TronStartListenBlock: DefaultStartListenBlock,
EthStartListenBlock: DefaultStartListenBlock,
BscStartListenBlock: DefaultStartListenBlock,

EthUnconfirmedTxsBusyLimit: DefaultEthBusyLimitTxs,
BscUnconfirmedTxsBusyLimit: DefaultBscBusyLimitTxs,
Expand Down
Loading