<oembed><type>rich</type><version>1.0</version><author_name>npub1uxks6rvrzqljyfp92sffgqypf8fpts0pv2dshvmmnrse76v0avlqy7wq7p</author_name><author_url>https://nostr.ae/npub1uxks6rvrzqljyfp92sffgqypf8fpts0pv2dshvmmnrse76v0avlqy7wq7p</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2019-03-07&#xA;📝 Original message:Can you elaborate a bit on what kind of reject messages your users are getting? I assume the users wallet connects directly to the Bitcoin p2p network?&#xA;&#xA;What does the wallet do when a transaction is rejected? Does it forget about it (that seems unsafe) or compose another one (with overlapping inputs)?&#xA;&#xA;Sjors&#xA;&#xA;&gt; Op 6 mrt. 2019, om 17:49 heeft Andreas Schildbach via bitcoin-dev &lt;bitcoin-dev at lists.linuxfoundation.org&gt; het volgende geschreven:&#xA;&gt; &#xA;&gt; Reject messages cannot be replaced for debugging user problems. At least&#xA;&gt; unless you plan to make RPC or bitcoind logfiles available via the P2P&#xA;&gt; protocol (both probably not a good idea).&#xA;&gt; &#xA;&gt; The typical case is, I get mailed a wallet logfile with reject messages&#xA;&gt; and that&#39;s all I have. I cannot access the bitcoind logfile(s) of the&#xA;&gt; node(s) that generated the reject message in the first place. Nor can I&#xA;&gt; access their RPC interface.&#xA;&gt; &#xA;&gt; I strongly suggest re-enabling reject messages by default before 0.18.&#xA;&gt; &#xA;&gt; &#xA;&gt; On 06/03/2019 01.53, Marco Falke via bitcoin-dev wrote:&#xA;&gt;&gt; Bitcoin Core may send &#34;reject&#34; messages as response to &#34;tx&#34;, &#34;block&#34; or&#xA;&gt;&gt; &#34;version&#34; messages from a network peer when the message could not be accepted.&#xA;&gt;&gt; &#xA;&gt;&gt; This feature is toggled by the `-enablebip61` command line option and has been&#xA;&gt;&gt; disabled by default since Bitcoin Core version 0.18.0 (not yet released as of&#xA;&gt;&gt; time of writing). Nodes on the network can not generally be trusted to send&#xA;&gt;&gt; valid (&#34;reject&#34;) messages, so this should only ever be used when connected to a&#xA;&gt;&gt; trusted node. At this time, I am not aware of any software that requires this&#xA;&gt;&gt; feature, and I would like to remove if from Bitcoin Core to make the codebase&#xA;&gt;&gt; slimmer, easier to understand and maintain. Let us know if your application&#xA;&gt;&gt; relies on this feature and you can not use any of the recommended alternatives:&#xA;&gt;&gt; &#xA;&gt;&gt; * Testing or debugging of implementations of the Bitcoin P2P network protocol&#xA;&gt;&gt;  should be done by inspecting the log messages that are produced by a recent&#xA;&gt;&gt;  version of Bitcoin Core. Bitcoin Core logs debug messages&#xA;&gt;&gt;  (`-debug=&lt;category&gt;`) to a stream (`-printtoconsole`) or to a file&#xA;&gt;&gt;  (`-debuglogfile=&lt;debug.log&gt;`).&#xA;&gt;&gt; &#xA;&gt;&gt; * Testing the validity of a block can be achieved by specific RPCs:&#xA;&gt;&gt;  - `submitblock`&#xA;&gt;&gt;  - `getblocktemplate` with `&#39;mode&#39;` set to `&#39;proposal&#39;` for blocks with&#xA;&gt;&gt;    potentially invalid POW&#xA;&gt;&gt; &#xA;&gt;&gt; * Testing the validity of a transaction can be achieved by specific RPCs:&#xA;&gt;&gt;  - `sendrawtransaction`&#xA;&gt;&gt;  - `testmempoolaccept`&#xA;&gt;&gt; &#xA;&gt;&gt; * Wallets should not use the absence of &#34;reject&#34; messages to indicate a&#xA;&gt;&gt;  transaction has propagated the network, nor should wallets use &#34;reject&#34;&#xA;&gt;&gt;  messages to set transaction fees. Wallets should rather use fee estimation&#xA;&gt;&gt;  to determine transaction fees and set replace-by-fee if desired. Thus, they&#xA;&gt;&gt;  could wait until the transaction has confirmed (taking into account the fee&#xA;&gt;&gt;  target they set (compare the RPC `estimatesmartfee`)) or listen for the&#xA;&gt;&gt;  transaction announcement by other network peers to check for propagation.&#xA;&gt;&gt; &#xA;&gt;&gt; I propose to remove &#34;reject&#34; messages from Bitcoin Core 0.19.0 unless there are&#xA;&gt;&gt; valid concerns about its removal.&#xA;&gt;&gt; &#xA;&gt;&gt; Marco&#xA;&gt;&gt; &#xA;&gt; &#xA;&gt; &#xA;&gt; _______________________________________________&#xA;&gt; bitcoin-dev mailing list&#xA;&gt; bitcoin-dev at lists.linuxfoundation.org&#xA;&gt; https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev</html></oembed>