-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ref-imp): #890 - ability to turn of value time lock updates
* feat(ref-imp): #890 - ability to turn of value time lock updates using a dedicated parameter * refactor(ref-imp): removed currentLockState in LockMonitor * fix(ref-imp): various minor fixes and logging improvements
- Loading branch information
1 parent
13e0563
commit 6ea1ea4
Showing
25 changed files
with
212 additions
and
438 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Bitcoin Blockchain Service Reference Implementation | ||
|
||
|
||
## Value Time Lock | ||
|
||
### Protocol parameters | ||
|
||
| Protocol parameters | Description | | ||
| ------------------------------------ | ---------------------------------------- | | ||
| minimumValueTimeLockDurationInBlocks | TODO | | ||
| maximumValueTimeLockDurationInBlocks | TODO | | ||
|
||
### Configuration parameters | ||
* valueTimeLockUpdateEnabled | ||
|
||
This parameter controls whether the value time lock is actively being renewed and if the funds will be returned to wallet in case of `valueTimeLockAmountInBitcoins` being set to zero. When this parameter is set to `false`, parameters `valueTimeLockAmountInBitcoins`, `valueTimeLockPollPeriodInSeconds` and `valueTimeLockTransactionFeesAmountInBitcoins` will be ignored. | ||
|
||
* valueTimeLockAmountInBitcoins | ||
|
||
The desired fund locked to write larger operation batches. Set to 0 will causes existing locked fund (if exists) to be released back to wallet upon lock expiry. | ||
|
||
* valueTimeLockPollPeriodInSeconds | ||
|
||
The polling duration between checks to see if the value time lock needs to be re-locked or released back to wallet. | ||
|
||
* valueTimeLockTransactionFeesAmountInBitcoins | ||
|
||
The fund allocated for transaction fees for subsequent re-locking of the initial value time lock. | ||
|
||
> Developer's note: | ||
This allotted amount is locked together with value time lock for simplicity of re-lock implementation. If this allotted amount is depleted due to subsequent re-locks, the remaining locked amount will be released back to wallet, and a new lock will be created with this allotted amount added to it again. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.