Skip to content

Anti fee snipping: allow caller to set nLockTime to transactions#16

Merged
darosior merged 2 commits intorevault:masterfrom
darosior:anti_fee_snipping
Sep 26, 2020
Merged

Anti fee snipping: allow caller to set nLockTime to transactions#16
darosior merged 2 commits intorevault:masterfrom
darosior:anti_fee_snipping

Conversation

@darosior
Copy link
Copy Markdown
Member

Based on #15.

It adds a new parameter to the transactions constructor for them to be able to set the transaction's nLockTime.

@JSwambo
Copy link
Copy Markdown
Member

JSwambo commented Sep 26, 2020

Ack 677f721

Benefits:
- Enforce types at compilation
- Better API (no Result at creation, errors are statics, more
  fine-grained)
- Actual types (no enum variant)

Drawbacks:
- Boilerplate, partially handled by macros

Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
@darosior
Copy link
Copy Markdown
Member Author

darosior commented Sep 26, 2020

Rebased on master.

ACK cf19162 (re-applying Jacob's ACK)

@darosior darosior merged commit 0f4e35a into revault:master Sep 26, 2020
@darosior darosior deleted the anti_fee_snipping branch September 26, 2020 12:33
darosior added a commit to darosior/revault_tx that referenced this pull request Sep 28, 2020
This reverts commit f57f94d which was
inadvertendly merged as part of revault#16 ...

Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
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.

2 participants