Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
Don't allow spending TXOs of an unknown or unsupported scriptType.
Browse files Browse the repository at this point in the history
  • Loading branch information
sproxet committed Jan 24, 2022
1 parent 3fc4b88 commit 8ddee94
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/store/modules/Transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ const getters = {
availableUTXOs: (state, getters, rootState, rootGetters): TXO[] => getters.UTXOs.filter((txo: TXO) =>
txo.isToMe &&
(rootGetters['App/allowBreakingMasternodes'] || !txo.isLocked) &&
txo.spendSize &&
txo.validAt <= rootGetters['ApiStatus/currentBlockHeight'] + 1
),

Expand Down

0 comments on commit 8ddee94

Please sign in to comment.