mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-29 13:32:33 +02:00
Diff-minimise
This commit is contained in:
parent
f637b331aa
commit
ac55776817
@ -1,6 +0,0 @@
|
|||||||
GUI changes
|
|
||||||
------
|
|
||||||
|
|
||||||
- Transactions that are confirmed while assume utxo background sync is in progress,
|
|
||||||
will have a clock icon and a tooltip explaining that historical blocks are still
|
|
||||||
being verified. (#28616)
|
|
@ -175,31 +175,44 @@ void TransactionRecord::updateStatus(const interfaces::WalletTxStatus& wtx, cons
|
|||||||
|
|
||||||
// For generated transactions, determine maturity
|
// For generated transactions, determine maturity
|
||||||
if (type == TransactionRecord::Generated) {
|
if (type == TransactionRecord::Generated) {
|
||||||
if (wtx.blocks_to_maturity > 0) {
|
if (wtx.blocks_to_maturity > 0)
|
||||||
|
{
|
||||||
status.status = TransactionStatus::Immature;
|
status.status = TransactionStatus::Immature;
|
||||||
|
|
||||||
if (wtx.is_in_main_chain) {
|
if (wtx.is_in_main_chain)
|
||||||
|
{
|
||||||
status.matures_in = wtx.blocks_to_maturity;
|
status.matures_in = wtx.blocks_to_maturity;
|
||||||
} else {
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
status.status = TransactionStatus::NotAccepted;
|
status.status = TransactionStatus::NotAccepted;
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
status.status = TransactionStatus::Confirmed;
|
status.status = TransactionStatus::Confirmed;
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
if (status.depth < 0) {
|
else
|
||||||
|
{
|
||||||
|
if (status.depth < 0)
|
||||||
|
{
|
||||||
status.status = TransactionStatus::Conflicted;
|
status.status = TransactionStatus::Conflicted;
|
||||||
}
|
}
|
||||||
else if (status.depth == 0) {
|
else if (status.depth == 0)
|
||||||
|
{
|
||||||
status.status = TransactionStatus::Unconfirmed;
|
status.status = TransactionStatus::Unconfirmed;
|
||||||
if (wtx.is_abandoned) {
|
if (wtx.is_abandoned)
|
||||||
status.status = TransactionStatus::Abandoned;
|
status.status = TransactionStatus::Abandoned;
|
||||||
}
|
|
||||||
} else if (wtx.is_assumed) {
|
} else if (wtx.is_assumed) {
|
||||||
status.status = TransactionStatus::AssumedConfirmed;
|
status.status = TransactionStatus::AssumedConfirmed;
|
||||||
} else if (status.depth < RecommendedNumConfirmations) {
|
}
|
||||||
|
else if (status.depth < RecommendedNumConfirmations)
|
||||||
|
{
|
||||||
status.status = TransactionStatus::Confirming;
|
status.status = TransactionStatus::Confirming;
|
||||||
} else {
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
status.status = TransactionStatus::Confirmed;
|
status.status = TransactionStatus::Confirmed;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user