Skip to content
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

Merged
merged 55 commits into from
Aug 1, 2019
Merged

feat: Implement AIP 102 (HTLC) #2773

merged 55 commits into from
Aug 1, 2019

Conversation

air1one
Copy link
Contributor

@air1one air1one commented Jul 4, 2019

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?

  • Bugfix
  • Feature
  • Refactor
  • Performance
  • Tests
  • Build
  • Documentation
  • Code style update
  • Continuous Integration
  • Other, please describe:

Does this PR introduce a breaking change?

  • Yes
  • No

Does this PR release a new version?

  • Yes
  • No

If yes, please describe the impact and migration path for existing applications:

The PR fulfills these requirements:

  • It's submitted to the develop branch, not the master branch
  • All tests are passing
  • New/updated tests are included

If adding a new feature, the PR's description includes:

  • A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

Make abstract transaction handler unaware of child htlc implementation
+ sha256 for HTLC hash instead of hash256
@ghost
Copy link

ghost commented Jul 8, 2019

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
@spkjp spkjp mentioned this pull request Jul 9, 2019
11 tasks
@spkjp spkjp merged commit 51b9939 into 2.6 Aug 1, 2019
@ghost ghost deleted the feat/htlc branch August 1, 2019 21:25
@ghost ghost removed the Status: In Progress label Aug 1, 2019

const buffer: ByteBuffer = new ByteBuffer(8 + 32 + 8 + 21, true);

buffer.writeUint64(+data.amount);

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants