fix tipping
This commit is contained in:
parent
3e6bd6351f
commit
ee9adea89a
@ -1185,7 +1185,8 @@ export class Wallet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (tip.accepted) {
|
if (tip.accepted) {
|
||||||
// Transactionall set coin to fresh.
|
console.log("untainting already accepted tip");
|
||||||
|
// Transactionally set coin to fresh.
|
||||||
const mutateCoin = (c: CoinRecord) => {
|
const mutateCoin = (c: CoinRecord) => {
|
||||||
if (c.status === CoinStatus.TainedByTip) {
|
if (c.status === CoinStatus.TainedByTip) {
|
||||||
c.status = CoinStatus.Fresh;
|
c.status = CoinStatus.Fresh;
|
||||||
@ -1325,7 +1326,7 @@ export class Wallet {
|
|||||||
denomSig,
|
denomSig,
|
||||||
exchangeBaseUrl: pc.exchangeBaseUrl,
|
exchangeBaseUrl: pc.exchangeBaseUrl,
|
||||||
reservePub: pc.reservePub,
|
reservePub: pc.reservePub,
|
||||||
status: CoinStatus.Fresh,
|
status: pc.isFromTip ? CoinStatus.TainedByTip : CoinStatus.Fresh,
|
||||||
};
|
};
|
||||||
return coin;
|
return coin;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user