Skip to content

Commit 76df006

Browse files
committed
feat: mark utxo selected with ttl
1 parent 52de829 commit 76df006

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/new/wallet.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,9 +1070,10 @@ class HathorWallet extends EventEmitter {
10701070
* @param {string} txId Transaction id of the UTXO
10711071
* @param {number} index Output index of the UTXO
10721072
* @param {boolean} [value=true] The value to set the utxos.
1073+
* @param {number?} [ttl=null]
10731074
*/
1074-
async markUtxoSelected(txId, index, value = true) {
1075-
await this.storage.utxoSelectAsInput({ txId, index }, value);
1075+
async markUtxoSelected(txId, index, value = true, ttl = null) {
1076+
await this.storage.utxoSelectAsInput({ txId, index }, value, ttl);
10761077
}
10771078

10781079
/**

0 commit comments

Comments
 (0)