mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-17 04:04:21 +01:00
Support round expiration and sweep vtxos (#70)
* sweeper base implementation * sweeper service final implementation * fixes * fix CSV script * RoundSwept event fix & test * remove Vtxos after a sweep transaction * ARK_ROUND_LIFETIME config * remove TxBuilder.GetLifetime * refactor sweeper * use GetTransaction blocktime * polish and comments * fix linting * pair programming fixes * several fixes * clean Println * fixes * linter fixes * remove infrastructure deps from application layer * Fixes --------- Co-authored-by: altafan <18440657+altafan@users.noreply.github.com>
This commit is contained in:
@@ -229,7 +229,7 @@ func validateNodeTransaction(
|
||||
return ErrInvalidTaprootScript
|
||||
}
|
||||
|
||||
isSweepLeaf, aspKey, seconds, err := decodeSweepScript(tapLeaf.Script)
|
||||
isSweepLeaf, aspKey, seconds, err := DecodeSweepScript(tapLeaf.Script)
|
||||
if err != nil {
|
||||
return fmt.Errorf("invalid sweep script: %w", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user