-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: implement bitcoin relayer #432
base: main
Are you sure you want to change the base?
Conversation
…wallet (#2) * feat: add transmission and bitcoin module --------- Co-authored-by: k0r1 <[email protected]>
Add Bitcoin taproot multisig wallet library
…wallet (#2) * feat: add transmission and bitcoin module --------- Co-authored-by: k0r1 <[email protected]>
fix: build multisig tx with rollback case
feat: handle callback
fix: del cache relaymessage after success
fix: remove unused
fix: slave select default input from master
feat: mainnet test
chore: clean code
relayer/chains/evm/event_parse.go
Outdated
@@ -12,7 +13,9 @@ func (p *Provider) getRelayMessageFromLog(log types.Log) (*providerTypes.Message | |||
return nil, fmt.Errorf("topic length mismatch") | |||
} | |||
topic := log.Topics[0] | |||
|
|||
if len(topic) != 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't this logic break the existing implementation as we are doing the bitcoin relay for all the topic messages ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just redundant code, we have reviewed but left them out.
I removed them!
relayer/transmission/transmission.go
Outdated
|
||
body, err := io.ReadAll(resp.Body) | ||
if err != nil { | ||
log.Fatalf("Error reading response: %v", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider replacing FatalF with other severity as it means printf followed by os.exit leading the application to exit for every error. The relayer uses zap logger
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed these redundant codes too!
Description:
Features:
Docs:
Including testing results and how to use bitcoin relayer
Mainnet contracts:
Checklist:
(https://github.com/icon-project/community/blob/main/guidelines/technical/software-development-guidelines.md#commit-messages)