Repository navigation
qt: asset history, new splash screen and application icon; eight Bitcoin Core fixes - #299
Merged
Merged
Conversation
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.
This was referenced Nov 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
TransactionDesc::describeAssetOutput()and the dialog calls it.QTableView::item { color }in Light.css and Dark.css overrode them. The colour moved toQTableView {}, 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.AddressColorRole.Fixes from Bitcoin Core
One commit each, with
Github-PullandRebased-Fromlines.ConnectBlock: the precomputed transaction data is declared before the script check queue control, so it outlives the queued checks on every path.bumpfee,psbtbumpfeeand the GUI no longer crash when the combined bump fee cannot be calculated.removeprunedfundserases only the removed transaction's entries ofmapTxSpends, not those of conflicting transactions.PSBTInputSignedAndVerified: the bounds assert let an index one past the end through.total_amountheld a boolean, not an amount.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.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.-reindexno longer leaves a process that does not exit.Where Avian differs from upstream:
miner_testsloop 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.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.
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.pngand the newavian_testnet.png: a rounded square of 940 pixels in 1024, with a transparent margin and a smooth edge.avian.icoandavian_testnet.icoare made from them: 16, 20, 24, 32, 40, 48, 64 and 128 pixels as bitmaps, 256 as PNG.avian.icnsis made fromavian.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 newavian.ico.NetworkStyletook the mainnet icon and rotated its hue, which recolours the logo; that code is gone.avian_signet.icowas 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
.icnsand.icofiles were read back and rendered at every size, not seen in Finder, the Dock or the taskbar.script_assets_testsis skipped locally for want of its data directory.assetHistoryTestsis 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 docreateAssetDialogTests,consolidateDialogTestsandassetAmountFieldTests.mining_sv2.pypasses.avian-qtstarts and stops through the new splash screen on a fresh data directory and with-reindex.QTableWidgetwith 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).Left open