<oembed><type>rich</type><version>1.0</version><author_name>npub1x54n25utwk7dzwzvk2v0aknptez5gxdwcyrxx2wgc0lnhgvwu72qmkqsqu</author_name><author_url>https://nostr.ae/npub1x54n25utwk7dzwzvk2v0aknptez5gxdwcyrxx2wgc0lnhgvwu72qmkqsqu</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2019-03-06&#xA;📝 Original message:The reject message is helpful for figuring out why a tx was rejected.&#xA;&#xA;It’s not useful for determining success, yes. Particularly when doing&#xA;segwit / newer types of tx’s as there’s always one or more pesky nodes who&#xA;still don’t support it and send a reject message for perfectly good tx’s.&#xA;&#xA;But after a delay where you haven’t seen your tx propagated on the network,&#xA;it’s useful to know *why* it failed.&#xA;&#xA;What would be nice is actually expanding this error message. Currently with&#xA;RBF tx’s “fee too small” is sent for both original transactions as well as&#xA;replacement transactions. So a bug accidentally sending spent txos&#xA;(currently in mempool) says “fee too small” instead of something more&#xA;appropriate like “fee too small to supersede existing unconfirmed&#xA;transaction.”&#xA;&#xA;On Tue, Mar 5, 2019 at 7:26 PM Marco Falke via bitcoin-dev &lt;&#xA;bitcoin-dev at lists.linuxfoundation.org&gt; wrote:&#xA;&#xA;&gt; Bitcoin Core may send &#34;reject&#34; messages as response to &#34;tx&#34;, &#34;block&#34; or&#xA;&gt; &#34;version&#34; messages from a network peer when the message could not be&#xA;&gt; accepted.&#xA;&gt;&#xA;&gt; This feature is toggled by the `-enablebip61` command line option and has&#xA;&gt; been&#xA;&gt; disabled by default since Bitcoin Core version 0.18.0 (not yet released as&#xA;&gt; of&#xA;&gt; time of writing). Nodes on the network can not generally be trusted to send&#xA;&gt; valid (&#34;reject&#34;) messages, so this should only ever be used when connected&#xA;&gt; to a&#xA;&gt; trusted node. At this time, I am not aware of any software that requires&#xA;&gt; this&#xA;&gt; feature, and I would like to remove if from Bitcoin Core to make the&#xA;&gt; codebase&#xA;&gt; slimmer, easier to understand and maintain. Let us know if your application&#xA;&gt; relies on this feature and you can not use any of the recommended&#xA;&gt; alternatives:&#xA;&gt;&#xA;&gt; * Testing or debugging of implementations of the Bitcoin P2P network&#xA;&gt; protocol&#xA;&gt;   should be done by inspecting the log messages that are produced by a&#xA;&gt; recent&#xA;&gt;   version of Bitcoin Core. Bitcoin Core logs debug messages&#xA;&gt;   (`-debug=&lt;category&gt;`) to a stream (`-printtoconsole`) or to a file&#xA;&gt;   (`-debuglogfile=&lt;debug.log&gt;`).&#xA;&gt;&#xA;&gt; * Testing the validity of a block can be achieved by specific RPCs:&#xA;&gt;   - `submitblock`&#xA;&gt;   - `getblocktemplate` with `&#39;mode&#39;` set to `&#39;proposal&#39;` for blocks with&#xA;&gt;     potentially invalid POW&#xA;&gt;&#xA;&gt; * Testing the validity of a transaction can be achieved by specific RPCs:&#xA;&gt;   - `sendrawtransaction`&#xA;&gt;   - `testmempoolaccept`&#xA;&gt;&#xA;&gt; * Wallets should not use the absence of &#34;reject&#34; messages to indicate a&#xA;&gt;   transaction has propagated the network, nor should wallets use &#34;reject&#34;&#xA;&gt;   messages to set transaction fees. Wallets should rather use fee&#xA;&gt; estimation&#xA;&gt;   to determine transaction fees and set replace-by-fee if desired. Thus,&#xA;&gt; they&#xA;&gt;   could wait until the transaction has confirmed (taking into account the&#xA;&gt; fee&#xA;&gt;   target they set (compare the RPC `estimatesmartfee`)) or listen for the&#xA;&gt;   transaction announcement by other network peers to check for propagation.&#xA;&gt;&#xA;&gt; I propose to remove &#34;reject&#34; messages from Bitcoin Core 0.19.0 unless&#xA;&gt; there are&#xA;&gt; valid concerns about its removal.&#xA;&gt;&#xA;&gt; Marco&#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&#xA;&gt;&#xA;-------------- next part --------------&#xA;An HTML attachment was scrubbed...&#xA;URL: &lt;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20190305/bf105368/attachment.html&gt;</html></oembed>