mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-31 10:41:08 +00:00
Add a GetFeePerVSize() accessor to CFeeRate, and use it in the BlockAssembler
This commit is contained in:
parent
b5f245f6f2
commit
6f3e8eb300
@ -252,7 +252,7 @@ void BlockAssembler::addChunks()
|
||||
|
||||
while (selected_transactions.size() > 0) {
|
||||
// Check to see if min fee rate is still respected.
|
||||
if (chunk_feerate.fee < m_options.blockMinFeeRate.GetFee(chunk_feerate_vsize.size)) {
|
||||
if (chunk_feerate_vsize << m_options.blockMinFeeRate.GetFeePerVSize()) {
|
||||
// Everything else we might consider has a lower feerate
|
||||
return;
|
||||
}
|
||||
|
||||
@ -57,6 +57,8 @@ public:
|
||||
*/
|
||||
CAmount GetFee(int32_t virtual_bytes) const;
|
||||
|
||||
FeePerVSize GetFeePerVSize() const { return m_feerate; }
|
||||
|
||||
/**
|
||||
* Return the fee in satoshis for a vsize of 1000 vbytes
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user