HomePhabricator

Use virtualsize for mining/mempool priority

Description

Use virtualsize for mining/mempool priority

Summary:
This uses the virtualsize for influencing the mining priority / mempool eviction
priority under conditions of mempool congestion.

All other uses of size in mining/mempool continue to use actual size:

  • mempool entry minfeerate limitation (the 1 sat/byte regular limit)
  • mining minimum feerate calculation
  • mining block size calculations
  • ancestor size limit for chains
  • descendant size limit for chains
  • sorting order for net_processing mempool requests
  • calculation of 'bytes' in getmempoolinfo

This changes no behaviour under normal conditions, only under congestion.

Depends on D4906

Test Plan: ninja check-all

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D4903

Details

Provenance
Mark Lundeberg <markblundeberg@users.noreply.github.com>Authored on Jan 11 2020, 07:58
markblundebergPushed on Jan 30 2020, 09:09
Reviewer
Restricted Project
Differential Revision
D4903: Use virtualsize for mining/mempool priority
Parents
rABCa4149bf01f26: rpc: Make unloadwallet wait for complete wallet unload
Branches
Unknown
Tags
Unknown

Event Timeline

Mark Lundeberg <markblundeberg@users.noreply.github.com> committed rABC2c90da9a9188: Use virtualsize for mining/mempool priority (authored by Mark Lundeberg <markblundeberg@users.noreply.github.com>).Jan 30 2020, 09:09