mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-17 20:24:21 +01:00
Add integration tests for sweeping rounds (#339)
* add "block" scheduler type + sweep integration test * increase timeout in integrationtests * remove config logs * rename scheduler package name * rename package * rename packages
This commit is contained in:
@@ -130,15 +130,18 @@ func (e *Older) Parse(policy string) error {
|
||||
}
|
||||
|
||||
func (e *Older) Script(bool) (string, error) {
|
||||
sequence, err := common.BIP68Encode(e.Timeout)
|
||||
sequence, err := common.BIP68Sequence(e.Timeout)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
script, err := txscript.NewScriptBuilder().AddData(sequence).AddOps([]byte{
|
||||
txscript.OP_CHECKSEQUENCEVERIFY,
|
||||
txscript.OP_DROP,
|
||||
}).Script()
|
||||
script, err := txscript.NewScriptBuilder().
|
||||
AddInt64(int64(sequence)).
|
||||
AddOps([]byte{
|
||||
txscript.OP_CHECKSEQUENCEVERIFY,
|
||||
txscript.OP_DROP,
|
||||
}).
|
||||
Script()
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user