Commit 0b169565 authored by hezhengjun's avatar hezhengjun

correct event type to ClaimTypeWithdraw

parent 165af6d9
......@@ -814,7 +814,7 @@ func (ethRelayer *Relayer4Ethereum) newTx(from, to common.Address, input []byte,
func (ethRelayer *Relayer4Ethereum) handleLogLockBurn(chain33Msg *events.Chain33Msg) {
//对于通过代理人登录的中继器,不处理lock和burn事件
if ethRelayer.processWithDraw {
relayerLog.Info("handleLogWithdraw", "Needn't process lock and burn for this withdraw process specified validator", ethRelayer.ethSender)
relayerLog.Info("handleLogLockBurn", "Needn't process lock and burn for this withdraw process specified validator", ethRelayer.ethSender)
return
}
relayerLog.Info("handleLogLockBurn", "Received chain33Msg", chain33Msg, "tx hash string", common.Bytes2Hex(chain33Msg.TxHash))
......
......@@ -125,8 +125,6 @@ func UnpackLogWithdraw(contractAbi abi.ABI, eventName string, eventData []byte)
return withdrawEvent, nil
}
// ParseBurnLock4chain33 ParseBurnLockTxReceipt : parses data from a Burn/Lock/Withdraw event witnessed on chain33 into a Chain33Msg struct
func ParseBurnLock4chain33(evmEventType Chain33EvmEvent, data []byte, bridgeBankAbi abi.ABI, chain33TxHash []byte) (*Chain33Msg, error) {
if Chain33EventLogLock == evmEventType {
......@@ -171,7 +169,7 @@ func ParseBurnLock4chain33(evmEventType Chain33EvmEvent, data []byte, bridgeBank
}
chain33Msg := &Chain33Msg{
ClaimType: ClaimTypeBurn,
ClaimType: ClaimTypeWithdraw,
Chain33Sender: burnEvent.OwnerFrom.ToAddress(),
EthereumReceiver: common.BytesToAddress(burnEvent.EthereumReceiver),
TokenContractAddress: burnEvent.BridgeToken.ToAddress(),
......
......@@ -31,5 +31,5 @@ func (d Event) String() string {
}
func (d ClaimType) String() string {
return [...]string{"unknown-LOG", "burn", "lock"}[d]
return [...]string{"unknown-LOG", "burn", "lock", "withdraw"}[d]
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment