Inside Bitcoin
Opening the selected file…
Inside Bitcoin
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
252New settings253------------255- The `startupnotify` option is used to specify a command to256execute when Bitcoin Core has finished with its startup257sequence. (#15367)259Wallet260------262- Backwards compatibility has been dropped for two `getaddressinfo` RPC263deprecations, as notified in the 0.20 release notes. The deprecated `label`264field has been removed as well as the deprecated `labels` behavior of265returning a JSON object containing `name` and `purpose` key-value pairs. Since2660.20, the `labels` field returns a JSON array of label names. (#19200)268- To improve wallet privacy, the frequency of wallet rebroadcast attempts is269reduced from approximately once every 15 minutes to once every 12-36 hours.270To maintain a similar level of guarantee for initial broadcast of wallet271transactions, the mempool tracks these transactions as a part of the newly272introduced unbroadcast set. See the "P2P and network changes" section for273more information on the unbroadcast set. (#18038)275- The `sendtoaddress` and `sendmany` RPCs accept an optional `verbose=True`276argument to also return the fee reason about the sent tx. (#19501)278- The wallet can create a transaction without change even when the keypool is279empty. Previously it failed. (#17219)281- The `-salvagewallet` startup option has been removed. A new `salvage` command282has been added to the `bitcoin-wallet` tool which performs the salvage283operations that `-salvagewallet` did. (#18918)285- A new configuration flag `-maxapsfee` has been added, which sets the max286allowed avoid partial spends (APS) fee. It defaults to 0 (i.e. fee is the287same with and without APS). Setting it to -1 will disable APS, unless288`-avoidpartialspends` is set. (#14582)290- The wallet will now avoid partial spends (APS) by default, if this does not291result in a difference in fees compared to the non-APS variant. The allowed292fee threshold can be adjusted using the new `-maxapsfee` configuration293option. (#14582)295- The `createwallet`, `loadwallet`, and `unloadwallet` RPCs now accept296`load_on_startup` options to modify the settings list. Unless these options297are explicitly set to true or false, the list is not modified, so the RPC298methods remain backwards compatible. (#15937)300- A new `send` RPC with similar syntax to `walletcreatefundedpsbt`, including301support for coin selection and a custom fee rate, is added. The `send` RPC is302experimental and may change in subsequent releases. (#16378)304- The `estimate_mode` parameter is now case-insensitive in the `bumpfee`,305`fundrawtransaction`, `sendmany`, `sendtoaddress`, `send` and306`walletcreatefundedpsbt` RPCs. (#11413)308- The `bumpfee` RPC now uses `conf_target` rather than `confTarget` in the309options. (#11413)311- `fundrawtransaction` and `walletcreatefundedpsbt` when used with the312`lockUnspents` argument now lock manually selected coins, in addition to313automatically selected coins. Note that locked coins are never used in314automatic coin selection, but can still be manually selected. (#18244)316- The `-zapwallettxes` startup option has been removed and its functionality317removed from the wallet. This option was originally intended to allow for318rescuing wallets which were affected by a malleability attack. More recently,319it has been used in the fee bumping of transactions that did not signal RBF.320This functionality has been superseded with the abandon transaction feature. (#19671)322- The error code when no wallet is loaded, but a wallet RPC is called, has been323changed from `-32601` (method not found) to `-18` (wallet not found).324(#20101)326### Automatic wallet creation removed328Bitcoin Core will no longer automatically create new wallets on startup. It will329load existing wallets specified by `-wallet` options on the command line or in330`bitcoin.conf` or `settings.json` files. And by default it will also load a331top-level unnamed ("") wallet. However, if specified wallets don't exist,332Bitcoin Core will now just log warnings instead of creating new wallets with333new keys and addresses like previous releases did.335New wallets can be created through the GUI (which has a more prominent create336wallet option), through the `bitcoin-cli createwallet` or `bitcoin-wallet337create` commands, or the `createwallet` RPC. (#15454, #20186)339### Experimental Descriptor Wallets341Please note that Descriptor Wallets are still experimental and not all expected functionality342is available. Additionally there may be some bugs and current functions may change in the future.343Bugs and missing functionality can be reported to the [issue tracker](https://github.com/bitcoin/bitcoin/issues).3450.21 introduces a new type of wallet - Descriptor Wallets. Descriptor Wallets store346scriptPubKey information using output descriptors. This is in contrast to the Legacy Wallet347structure where keys are used to implicitly generate scriptPubKeys and addresses. Because of this348shift to being script based instead of key based, many of the confusing things that Legacy349Wallets do are not possible with Descriptor Wallets. Descriptor Wallets use a definition350of "mine" for scripts which is simpler and more intuitive than that used by Legacy Wallets.351Descriptor Wallets also uses different semantics for watch-only things and imports.353As Descriptor Wallets are a new type of wallet, their introduction does not affect existing wallets.354Users who already have a Bitcoin Core wallet can continue to use it as they did before without355any change in behavior. Newly created Legacy Wallets (which remains the default type of wallet) will356behave as they did in previous versions of Bitcoin Core.358The differences between Descriptor Wallets and Legacy Wallets are largely limited to non user facing359things. They are intended to behave similarly except for the import/export and watchonly functionality360as described below.362#### Creating Descriptor Wallets364Descriptor wallets are not the default type of wallet.366In the GUI, a checkbox has been added to the Create Wallet Dialog to indicate that a367Descriptor Wallet should be created. And a `descriptors` option has been added to `createwallet` RPC.368Setting `descriptors` to `true` will create a Descriptor Wallet instead of a Legacy Wallet.370Without those options being set, a Legacy Wallet will be created instead.372#### `IsMine` Semantics374`IsMine` refers to the function used to determine whether a script belongs to the wallet.375This is used to determine whether an output belongs to the wallet. `IsMine` in Legacy Wallets376returns true if the wallet would be able to sign an input that spends an output with that script.377Since keys can be involved in a variety of different scripts, this definition for `IsMine` can378lead to many unexpected scripts being considered part of the wallet.380With Descriptor Wallets, descriptors explicitly specify the set of scripts that are owned by381the wallet. Since descriptors are deterministic and easily enumerable, users will know exactly382what scripts the wallet will consider to belong to it. Additionally the implementation of `IsMine`383in Descriptor Wallets is far simpler than for Legacy Wallets. Notably, in Legacy Wallets, `IsMine`384allowed for users to take one type of address (e.g. P2PKH), mutate it into another address type385(e.g. P2WPKH), and the wallet would still detect outputs sending to the new address type386even without that address being requested from the wallet. Descriptor Wallets do not387allow for this and will only watch for the addresses that were explicitly requested from the wallet.389These changes to `IsMine` will make it easier to reason about what scripts the wallet will390actually be watching for in outputs. However for the vast majority of users, this change is391largely transparent and will not have noticeable effect.393#### Imports and Exports395In Legacy Wallets, raw scripts and keys could be imported to the wallet. Those imported scripts396and keys are treated separately from the keys generated by the wallet. This complicates the `IsMine`397logic as it has to distinguish between spendable and watchonly.399Descriptor Wallets handle importing scripts and keys differently. Only complete descriptors can be400imported. These descriptors are then added to the wallet as if it were a descriptor generated by401the wallet itself. This simplifies the `IsMine` logic so that it no longer has to distinguish402between spendable and watchonly. As such, the watchonly model for Descriptor Wallets is also403different and described in more detail in the next section.405To import into a Descriptor Wallet, a new `importdescriptors` RPC has been added that uses a syntax406similar to that of `importmulti`.408As Legacy Wallets and Descriptor Wallets use different mechanisms for storing and importing scripts and keys409the existing import RPCs have been disabled for descriptor wallets.410New export RPCs for Descriptor Wallets have not yet been added.412The following RPCs are disabled for Descriptor Wallets:414* `importprivkey`415* `importpubkey`416* `importaddress`417* `importwallet`418* `dumpprivkey`419* `dumpwallet`420* `importmulti`421* `addmultisigaddress`422* `sethdseed`424#### Watchonly Wallets426A Legacy Wallet contains both private keys and scripts that were being watched.427Those watched scripts would not contribute to your normal balance. In order to see the watchonly428balance and to use watchonly things in transactions, an `include_watchonly` option was added429to many RPCs that would allow users to do that. However it is easy to forget to include this option.431Descriptor Wallets move to a per-wallet watchonly model. Instead an entire wallet is considered to be432watchonly depending on whether it was created with private keys disabled. This eliminates the need433to distinguish between things that are watchonly and things that are not within a wallet itself.435This change does have a caveat. If a Descriptor Wallet with private keys *enabled* has436a multiple key descriptor without all of the private keys (e.g. `multi(...)` with only one private key),437then the wallet will fail to sign and broadcast transactions. Such wallets would need to use the PSBT438workflow but the typical GUI Send, `sendtoaddress`, etc. workflows would still be available, just439non-functional.441This issue is worsened if the wallet contains both single key (e.g. `wpkh(...)`) descriptors and such442multiple key descriptors as some transactions could be signed and broadcast and others not. This is443due to some transactions containing only single key inputs, while others would contain both single444key and multiple key inputs, depending on which are available and how the coin selection algorithm445selects inputs. However this is not considered to be a supported use case; multisigs446should be in their own wallets which do not already have descriptors. Although users cannot export447descriptors with private keys for now as explained earlier.449#### BIP 44/49/84 Support451The change to using descriptors changes the default derivation paths used by Bitcoin Core452to adhere to BIP 44/49/84. Descriptors with different derivation paths can be imported without453issue.455#### SQLite Database Backend457Descriptor wallets use SQLite for the wallet file instead of the Berkeley DB used in legacy wallets.458This will break compatibility with any existing tooling that operates on wallets, however compatibility459was already being broken by the move to descriptors.461### Wallet RPC changes463- The `upgradewallet` RPC replaces the `-upgradewallet` command line option.464(#15761)466- The `settxfee` RPC will fail if the fee was set higher than the `-maxtxfee`467command line setting. The wallet will already fail to create transactions468with fees higher than `-maxtxfee`. (#18467)470- A new `fee_rate` parameter/option denominated in satoshis per vbyte (sat/vB)471is introduced to the `sendtoaddress`, `sendmany`, `fundrawtransaction` and472`walletcreatefundedpsbt` RPCs as well as to the experimental new `send`473RPC. The legacy `feeRate` option in `fundrawtransaction` and474`walletcreatefundedpsbt` still exists for setting a fee rate in BTC per 1,000475vbytes (BTC/kvB), but it is expected to be deprecated soon to avoid476confusion. For these RPCs, the fee rate error message is updated from BTC/kB477to sat/vB and the help documentation in BTC/kB is updated to BTC/kvB. The478`send` and `sendtoaddress` RPC examples are updated to aid users in creating479transactions with explicit fee rates. (#20305, #11413)481- The `bumpfee` RPC `fee_rate` option is changed from BTC/kvB to sat/vB and the482help documentation is updated. Users are warned that this is a breaking API483change, but it should be relatively benign: the large (100,000 times)484difference between BTC/kvB and sat/vB units means that a transaction with a485fee rate mistakenly calculated in BTC/kvB rather than sat/vB should raise an486error due to the fee rate being set too low. In the worst case, the487transaction may send at 1 sat/vB, but as Replace-by-Fee (BIP125 RBF) is active488by default when an explicit fee rate is used, the transaction fee can be489bumped. (#20305)491GUI changes492-----------494- Wallets created or loaded in the GUI will now be automatically loaded on495startup, so they don't need to be manually reloaded next time Bitcoin Core is496started. The list of wallets to load on startup is stored in497`\<datadir\>/settings.json` and augments any command line or `bitcoin.conf`498`-wallet=` settings that specify more wallets to load. Wallets that are499unloaded in the GUI get removed from the settings list so they won't load500again automatically next startup. (#19754)
Independent explanations by MyBitcoinExplorer. Not affiliated with or endorsed by Bitcoin Core. Guides are educational and do not replace the source or its tests.
Bitcoin Core source © its contributors, distributed under the MIT license. Original notices and bundled third-party licenses are retained in the source tree.