ZIP 401: revert change to use wtxid.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Daira Hopwood 2021-09-17 13:10:02 +01:00
parent 49faaafe4d
commit 043672cc07
2 changed files with 4 additions and 4 deletions

View File

@ -40,7 +40,7 @@ License: MIT</pre>
<p>max(serialized transaction size in bytes, 4000)</p>
</blockquote>
<p>Each transaction also has an <em>eviction weight</em>, which is <em>cost</em> + <em>low_fee_penalty</em>, where <em>low_fee_penalty</em> is 16000 if the transaction pays a fee less than the conventional fee, otherwise 0. The conventional fee is currently defined as 1000 zatoshis <a id="id4" class="footnote_reference" href="#zip-0313">5</a>.</p>
<p>Each node also MUST hold a FIFO queue RecentlyEvicted of pairs (txid, time), where the time indicates when the transaction with the given txid was evicted. After activation of NU5 <a id="id5" class="footnote_reference" href="#zip-0252">4</a>, the wtxid <a id="id6" class="footnote_reference" href="#zip-0239">3</a> rather than the txid is used to identify version 5 or later transactions.</p>
<p>Each node also MUST hold a FIFO queue RecentlyEvicted of pairs (txid, time), where the time indicates when the transaction with the given txid was evicted. The txid (rather than the wtxid as defined in <a id="id5" class="footnote_reference" href="#zip-0239">3</a>) is used even for version 5 transactions after activation of NU5 <a id="id6" class="footnote_reference" href="#zip-0252">4</a>.</p>
<p>The RecentlyEvicted queue SHOULD be empty on node startup. The size of RecentlyEvicted SHOULD never exceed <code>eviction_memory_entries</code> entries, which is the constant 40000.</p>
<p>There MUST be a configuration option <code>mempooltxcostlimit</code>, which SHOULD default to 80000000.</p>
<p>There MUST be a configuration option <code>mempoolevictionmemoryminutes</code>, which SHOULD default to 60.</p>

View File

@ -87,9 +87,9 @@ conventional fee, otherwise 0. The conventional fee is currently defined as
1000 zatoshis [#zip-0313]_.
Each node also MUST hold a FIFO queue RecentlyEvicted of pairs (txid, time), where
the time indicates when the transaction with the given txid was evicted. After
activation of NU5 [#zip-0252]_, the wtxid [#zip-0239]_ rather than the txid is used
to identify version 5 or later transactions.
the time indicates when the transaction with the given txid was evicted. The txid
(rather than the wtxid as defined in [#zip-0239]_) is used even for version 5
transactions after activation of NU5 [#zip-0252]_.
The RecentlyEvicted queue SHOULD be empty on node startup. The size of RecentlyEvicted
SHOULD never exceed ``eviction_memory_entries`` entries, which is the constant 40000.