diff --git a/helper/call.go b/helper/call.go index 56d6aaef..be9f333e 100644 --- a/helper/call.go +++ b/helper/call.go @@ -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 } diff --git a/helper/config.go b/helper/config.go index 52db40d4..eba1ae3d 100644 --- a/helper/config.go +++ b/helper/config.go @@ -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 @@ -317,6 +318,7 @@ func GetDefaultHeimdallConfig() Configuration { TronGridApiKey: DefaultTronGridApiKey, TronStartListenBlock: DefaultStartListenBlock, EthStartListenBlock: DefaultStartListenBlock, + BscStartListenBlock: DefaultStartListenBlock, EthUnconfirmedTxsBusyLimit: DefaultEthBusyLimitTxs, BscUnconfirmedTxsBusyLimit: DefaultBscBusyLimitTxs,