You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* base fix
* Refactored. Also fixed bug where vsize was 4x
* more refactoring
* Added some Txn ser/deser testing
* Improved the frequency of mempool fee histogram updates
- We now update the mempool fee histogram every 10 seconds, instead of
every 30
- Whenever we get a new block, we update it immediately upon the first
mempool synch after the block arrives
This should improve the txn estimates in Electrum for BTC users.
* Dont print Storage::refreshMempoolHistogram elapsed time unless >= 10msec
Also do the printing with no locks held, and destruct the swapped-in
hist vec with no locks held.
* Tweak to mempool bench to populate vsize correctly
* Nit
Copy file name to clipboardExpand all lines: src/Mempool.h
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,8 @@ struct Mempool
48
48
TxHash hash; ///< in reverse bitcoind order (ready for hex encode), fixed value.
49
49
50
50
bitcoin::Amount fee{bitcoin::Amount::zero()}; ///< we calculate this fee ourselves since in the past I noticed we get a funny value sometimes that's off by 1 or 2 sats -- which I suspect is due limitations of doubles, perhaps?
51
-
unsigned sizeBytes = 0;
51
+
unsigned sizeBytes = 0; // the actual serialized size
52
+
unsigned vsizeBytes = 0; // for segwit coins, the virtual size, for non-segwit, identical to sizeBytes
52
53
bool hasUnconfirmedParentTx = false; ///< If true, this tx depends on another tx in the mempool. This is not always fixed (confirmedInBlock may change this)
53
54
54
55
/// These are all the txos in this tx. Once set-up, this doesn't change (unlike IOInfo.utxo).
0 commit comments