-
Notifications
You must be signed in to change notification settings - Fork 286
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 AIP 102 (HTLC) #2773
Conversation
after removing timelock transfer so that we don't have any "hole"
Make abstract transaction handler unaware of child htlc implementation + sha256 for HTLC hash instead of hash256
The ci/circleci: node10-functional job is failing as of 02d3dcbb95480123d0e0488e08317d86297a4282. Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! |
don't allow tx to enter pool if the associated lock tx id is not found
+ fix lockWallet.locks strange issue (see comments)
they were missing some properties
update after wallets index change in 2.6
also handle nonce for htlc transactions
related to zero-fee htlc claim and refund + some fixes for htlc bootstrap functions
+ fix failing core-api test
|
||
const buffer: ByteBuffer = new ByteBuffer(8 + 32 + 8 + 21, true); | ||
|
||
buffer.writeUint64(+data.amount); |
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 think data.amount
is already packed in the common part of transaction serialization. It is a doublon serializing it here
Implement AIP 102 HTLC : https://github.com/ArkEcosystem/AIPs/blob/master/AIPS/aip-102.md
Edit: ready for reviews / merge.
What kind of change does this PR introduce?
Does this PR introduce a breaking change?
Does this PR release a new version?
If yes, please describe the impact and migration path for existing applications:
The PR fulfills these requirements:
develop
branch, not themaster
branchIf adding a new feature, the PR's description includes: