Skip to content

qt: asset history, new splash screen and application icon; eight Bitcoin Core fixes - #299

Merged
cdonnachie merged 15 commits into
mainfrom
fix/gui-asset-history-507
Nov 29, 2026
Merged

cdonnachie merged 15 commits into
mainfrom
fix/gui-asset-history-507

Conversation

@cdonnachie

@cdonnachie cdonnachie commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

Four things for 5.0.7: the transaction list and the transaction details show more of what an asset transaction did, eight fixes are taken from Bitcoin Core 30.3, 31.0 and 32.0, and the splash screen and the application icon are redrawn to follow the brand guidelines. No consensus rule changes.

Transaction list and details

  • An asset sent to an own address has a row, "Asset sent to yourself", with the asset and the amount. It is shown only when the transaction has no other asset row and no tag or freeze output: before 5.0.7 asset change and handed-back owner tokens went to receiving addresses, so in old history they cannot be told from a deliberate transfer to oneself. The balloon for such a transaction reads "Sent transaction".
  • The details of a transaction list its asset outputs, one "Asset:" line each, marked "(own address)" or "(change)". The text is the one the PSBT dialog already used; it moved to TransactionDesc::describeAssetOutput() and the dialog calls it.
  • Row colours show in both themes. Negative amounts are red, unconfirmed rows grey, abandoned rows a muted red. The model always returned these colours, but QTableView::item { color } in Light.css and Dark.css overrode them. The colour moved to QTableView {}, and the shades are chosen per theme (Bitcoin Core's are made for a white background).
    • QTableWidget { color } is removed from both themes. The item rule had masked it; without the removal the Consolidate UTXOs table would have turned pale grey on white.
    • In the list, an address without a label is no longer dimmed. The Overview page keeps the dimming through a new AddressColorRole.
  • The Type column is as wide as its longest text by default. A width the user has set is kept.

Fixes from Bitcoin Core

One commit each, with Github-Pull and Rebased-From lines.

Upstream From Change
bitcoin/bitcoin#35209 30.3 ConnectBlock: the precomputed transaction data is declared before the script check queue control, so it outlives the queued checks on every path.
bitcoin/bitcoin#34870 30.3 bumpfee, psbtbumpfee and the GUI no longer crash when the combined bump fee cannot be calculated.
bitcoin/bitcoin#34358 30.3 removeprunedfunds erases only the removed transaction's entries of mapTxSpends, not those of conflicting transactions.
bitcoin/bitcoin#34272 30.3 PSBTInputSignedAndVerified: the bounds assert let an index one past the end through.
bitcoin/bitcoin#34888 30.3 Coin selection: total_amount held a boolean, not an amount.
bitcoin/bitcoin#35228 30.3 CalculateMaximumSignedInputSize() uses the outpoint it is given, so an input from outside the wallet is not sized one byte too small. With its unit test.
bitcoin/bitcoin#33745 31.0 submitSolution() resets the checks cached on the template's block when it replaces the coinbase, so the witness commitment of the submitted coinbase is checked.
bitcoin/bitcoin#35652 32.0 Ctrl-C at the start of a -reindex no longer leaves a process that does not exit.

Where Avian differs from upstream:

  • #33745: the existing miner_tests loop dropped the witness commitment from the coinbase and kept the witness nonce. That is an invalid block here, where segwit is active from the first block, and it passed only through the stale cache this fix removes. The test now drops the nonce too, and a new case submits a coinbase with a wrong commitment and checks that the tip does not move. The new case fails without the fix.
  • #35652: the condition variable is also notified when the init thread gives up after a failed rebuild of the asset database, a path upstream does not have.
  • The upstream functional tests of #34358, #33745 and #35652 are not taken: the functional suite is not adapted to Avian.

Splash screen

The splash screen was Bitcoin Core's with the application icon in place of the Bitcoin logo: the eagle rotated and skewed in a circle with a shadow. The brand guidelines (brand.avn.network) allow none of that.

  • The logomark is drawn as supplied, upright, with the clear space the guidelines ask for.
  • Mainnet: white logomark on a teal to slate field, name, version and copyright centred below it.
  • Start-up progress is a bar, turquoise to mint, with the message under it. A message that ends in a percentage sets the bar.
  • Test networks: white, with the blue testnet logomark and the name of the network in a badge. The guidelines keep the teal and the blue identity apart.
  • Colours and gradient pairings are from the brand palette; the text is set in Inter, the brand typeface.

Added, unmodified: the white and the testnet logomark from the brand asset bundle, and Inter Regular and Bold 4.1 with their licence (SIL OFL 1.1, entry in contrib/debian/copyright), about 830 KB.

Application icon

The application icon was the same skewed eagle in a circle with a shadow. The new one is the white logomark, upright, on a rounded square in the teal of the brand, and the test networks have the same in the blue of the testnet identity.

  • avian.png and the new avian_testnet.png: a rounded square of 940 pixels in 1024, with a transparent margin and a smooth edge.
  • avian.ico and avian_testnet.ico are made from them: 16, 20, 24, 32, 40, 48, 64 and 128 pixels as bitmaps, 256 as PNG.
  • avian.icns is made from avian.png: 128, 256, 512 and 1024 pixels and the @2x sizes 32 and 64.
  • share/pixmaps/avian.ico, the icon of the Windows installer, is the new avian.ico.
  • On testnet, testnet4, signet and regtest the program loads the testnet icon. NetworkStyle took the mainnet icon and rotated its hue, which recolours the logo; that code is gone.
  • avian_signet.ico was a copy of Bitcoin Core's signet icon. It is removed, and the resource file names the testnet icon for signet.

How it was checked

Built and run in WSL (clang 18). This branch has not been run on Windows, the macOS build is CI's, and the GUI changes were looked at as offscreen renders, not on a screen. The new .icns and .ico files were read back and rendered at every size, not seen in Finder, the Dock or the taskbar.

  • Unit tests: 167 of 168 suites pass with all eight backports; script_assets_tests is skipped locally for want of its data directory.
  • Qt tests: assetHistoryTests is extended (the own-address row, old-style change beside a transfer gives no row, the details text, red only on negative amounts, the column width) and passes, as do createAssetDialogTests, consolidateDialogTests and assetAmountFieldTests.
  • Reindex hang: regtest, SIGTERM as soon as the reindex of the first block file is logged. 5 of 40 runs did not exit within 20 seconds before the change, none of 40 with it.
  • Regtest: mining_sv2.py passes. avian-qt starts and stops through the new splash screen on a fresh data directory and with -reindex.
  • Renders: the transaction list in both themes, a QTableWidget with the three colours, the splash screen on mainnet, testnet4 and regtest with a message, a percentage and a progress title, and the application and window icon each of the five networks gets (teal on mainnet, blue on the other four).
  • Not checked: the grey and the abandoned colour on a real row (only on a swatch); #34358, which has no test here.

Left open

  • The GUI is still set in Konnect; only the splash screen uses Inter.
  • Unloading a wallet during a Consolidate UTXOs run is still a use-after-free.

The details dialog showed coins only: an asset transfer read as a debit and
a credit of 0.00 AVN and a fee, with nothing about the asset. It now has a
line for every asset output, saying what the output does and whether it is
change or goes to an address of the wallet.

The text is the one the PSBT dialog already gives for an output (issue,
reissue, owner token, transfer, verifier string, tag, freeze). It moves to
TransactionDesc::describeAssetOutput() and both dialogs use it; what the
PSBT dialog shows is unchanged.
An asset sent to an address of the wallet had no row of its own; the
transaction showed as "Transaction fee, (n/a)". It now has a row "Asset sent
to yourself" with the address, the amount and the name, and the fee row
beside it. Asset change stays without a row: the wallet flags it. Such an
output is also left out beside an issue, a reissue, a tag, a freeze or a
transfer to somebody else, where it is a token handed back or change that
releases before 5.0.7 sent to a receiving address. The balloon calls the
transaction sent.

Row colours. Both themes set a text colour on every table cell
(QTableView::item), which overrides the colour a model gives: no amount was
ever red, no unconfirmed row grey, no abandoned one marked. The colour moves
to the table. The model's colours are chosen per theme, since the ones
inherited from Bitcoin Core are meant for a white background. Addresses
without a label keep the normal colour in the list; the Overview page, which
paints its own rows, asks for theirs through a role of its own. The text
colour of QTableWidget, until now hidden by the cell rule, would have made
the Consolidate UTXOs list unreadable and is removed.

Type column. Its width, 113 pixels, was that of Bitcoin Core's labels and
cut "Asset sent to" and "Transaction fee" short. It is taken from the
longest type text. A width still at the old default, or never set, is
widened once the list has its model; one chosen by hand is kept.
In ConnectBlock the per-transaction precomputed data was declared after the
script check queue control, so it was destroyed first. The control's
destructor waits for the queued checks, which hold pointers into that data.
On the paths that leave the loop with a break the checks are completed
before either goes out of scope, but an exception thrown while checks are
queued would have the worker threads read freed memory.

Declared before the control, the data always outlives the queue. Upstream
names this as the root cause of CVE-2024-52911.

Backport of Bitcoin Core 30.3 commit 17de6d2680db, by Antoine Poinsot.

Github-Pull: bitcoin/bitcoin#35209
Rebased-From: 1ed799fb21db51a12cbd5579420a61b9b5b3ee7d
When the unconfirmed inputs of a transaction depend on a very large cluster
of unconfirmed transactions, calculateCombinedBumpFee() returns nothing.
The error was recorded and the empty value read all the same: an uncaught
std::bad_optional_access in bumpfee and psbtbumpfee, and a crash in the
GUI. It now returns the error.

Backport of Bitcoin Core 30.3 commit 84c2f003b316, by furszy.

Github-Pull: bitcoin/bitcoin#34870
Rebased-From: 6072a2a6a1fdde8444e3515f0d201de3fb3923a1
removeprunedfunds erased every entry of mapTxSpends for the inputs of the
removed transaction, those of conflicting transactions among them. The
wallet then took the coins a conflicting transaction spends for unspent and
could build a double spend of them, also after that transaction was mined.
Only the entries of the removed transaction are erased.

The upstream functional test is not taken: the functional suite is not
adapted to Avian.

Backport of Bitcoin Core 30.3 commit 290526bc6dec, by Martin Zumsande.

Github-Pull: bitcoin/bitcoin#34358
Rebased-From: 1f60ca360eb83fa7982b1aac402eaaf477294197
The assert used `>=`, which let input_index == psbt.inputs.size() through
to an out-of-bounds read of psbt.inputs.

Backport of Bitcoin Core 30.3 commit 7e1090f5e805, by Lőrinc.

Github-Pull: bitcoin/bitcoin#34272
Rebased-From: 2f5b1c5f80590ffa6b5a5bcfb21fddb1dc22e852
The comparison was evaluated before the assignment, so total_amount held
the result of `a - b < c` and not the amount. It decides between the
message about a chain of unconfirmed transactions and plain "Insufficient
funds", and worked by accident.

Backport of Bitcoin Core 30.3 commit f05988aa0534, by furszy.

Github-Pull: bitcoin/bitcoin#34888
Rebased-From: 0026b330c4abbbbdb96e4f0c4d380d70d8e592ab
CalculateMaximumSignedInputSize() is given the outpoint being sized and did
not use it, so what coin control holds for that outpoint was not found: an
input selected from outside the wallet was sized as one of the wallet's
own, with a low-R signature, one byte too small.

Backport of Bitcoin Core 30.3 commit 1dba05e7f6b1, by Lőrinc and Antoine
Poinsot, with its unit test.

Github-Pull: bitcoin/bitcoin#35228
Rebased-From: cd8d3bd937b5515ea000408eb07d2ae3cd1aa417
A block template keeps its CBlock, and submitSolution() changes it in
place: the client brings a new coinbase. The checks cached on the block
were left as they were for the template's own coinbase, so the witness
commitment of the submitted coinbase was not checked, and this node could
take a block for its tip that every other node refuses.

The cached checks are reset with the coinbase. The Stratum v2 provider
checks the commitment itself before it submits; this closes it for every
user of the interface, IPC clients among them.

miner_tests: a solution whose coinbase commits to other witness data is
refused; the case fails without the change. The existing loop dropped the
commitment from the coinbase and kept the witness nonce, which is an
invalid block here, where segwit is active from the first block, and
passed only through the cache. It drops the nonce too.

Backport of Bitcoin Core 31.0 commit 862bd432837e, by Sjors Provoost. The
upstream functional test uses the IPC interface and is not taken.

Github-Pull: bitcoin/bitcoin#33745
Rebased-From: 862bd432837efeb6ab1435f75493501618ab3190
When a shutdown interrupts ImportBlocks() before the genesis block is
activated, no blockTip notification is sent. The wait for the genesis block
lets a shutdown through, but nothing notified its condition variable, so
start-up stayed in the wait: Ctrl-C at the start of a -reindex left a
process that did not exit.

The initload thread notifies the condition variable when ImportBlocks()
returns, and when it gives up after a failed rebuild of the asset database,
which upstream does not have.

On regtest, SIGTERM as soon as the reindex of the first block file is
logged: 5 of 40 runs did not exit within 20 seconds before, none of 40
with the change.

Backport of Bitcoin Core 32.0 commit c1313b199fe3, by ismaelsadeeq. The
upstream functional test is not taken.

Github-Pull: bitcoin/bitcoin#35652
Rebased-From: c1313b199fe320c8d3e7ba01577378dfb85009cf
The splash screen was Bitcoin Core's with the application icon in place of
the Bitcoin logo: the eagle turned and skewed in a circle with a shadow,
running off the corner. The brand guidelines (brand.avn.network) allow none
of that: the logomark is not to be rotated, stretched, recoloured or given
effects.

The new one draws the logomark as supplied, upright, with the clear space
the guidelines ask for, on a field of teal to slate, with the name, the
version and the copyright lines centred below it. Start-up progress is a
bar, turquoise to mint, with the message under it; a message that ends in
a percentage sets the bar too. Colours and gradient pairings are those of
the brand palette, and the text is set in Inter, the brand typeface.

On a test network the splash screen is white with the blue testnet eagle
and the name of the network in a badge, as the guidelines keep the teal and
the blue identity apart.

Added, unmodified: the white and the testnet logomark from the brand asset
bundle, and Inter Regular and Bold 4.1 with their licence (SIL OFL 1.1).
The application icon was the eagle turned and skewed in a circle with a
shadow, which the brand guidelines (brand.avn.network) do not allow. The
new one is the white logomark, upright, on a rounded square in the teal of
the brand. The test networks have the same in the blue of the testnet
identity.

- avian.png and the new avian_testnet.png are the two square pictures cut
  to a rounded square of 940 pixels in 1024, with a transparent margin and
  a smooth edge.
- avian.ico and avian_testnet.ico are made from them: 16, 20, 24, 32, 40,
  48, 64 and 128 pixels as bitmaps and 256 as PNG.
- avian.icns is made from avian.png: 128, 256, 512 and 1024 pixels and the
  @2x sizes 32 and 64, all PNG.
- share/pixmaps/avian.ico, the icon of the Windows installer, is the new
  avian.ico.
- On a test network the program loads the testnet icon. It took the
  mainnet icon and rotated its hue, which recolours the logo.
- avian_signet.ico was a copy of Bitcoin Core's signet icon. It is removed
  and the resource file names the testnet icon for signet.
@cdonnachie cdonnachie changed the title qt: asset history and a new splash screen; eight Bitcoin Core fixes qt: asset history, new splash screen and application icon; eight Bitcoin Core fixes Nov 29, 2026
@cdonnachie
cdonnachie merged commit d33c3f4 into main Nov 29, 2026
10 checks passed
@cdonnachie
cdonnachie deleted the fix/gui-asset-history-507 branch November 29, 2026 05:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant