Fix mempool.get_info, testmempoolaccept and outpoint.subscribe with the Palladium daemon
- mempool.get_info: the daemon has no incrementalrelayfee in getmempoolinfo, read incrementalfee from getnetworkinfo - testmempoolaccept: the daemon does not report wtxid - outpoint.subscribe: refuse the subscription (Coin.DAEMON_HAS_TXO_SPENDER_INDEX) instead of closing the session at the next block, when the daemon errors Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
27ef7cbabf
commit
b32548fd01
9 files changed
+41
-13
No files matched your search
@@ -336,6 +336,10 @@ class Daemon:
|
||||
|
||||
async def mempool_info(self) -> dict[str, float]:
|
||||
mempool_info = await self.getmempoolinfo()
|
||||
incrementalrelayfee = mempool_info.get('incrementalrelayfee')
|
||||
if incrementalrelayfee is None:
|
||||
# the Palladium daemon only reports it in getnetworkinfo, as 'incrementalfee'
|
||||
incrementalrelayfee = (await self.getnetworkinfo())['incrementalfee']
|
||||
return {
|
||||
# Dynamic minimum fee rate in PLM/kvB for tx to be accepted.
|
||||
# Is the maximum of minrelaytxfee and minimum mempool fee
|
||||
@@ -344,7 +348,7 @@ class Daemon:
|
||||
'minrelaytxfee': mempool_info['minrelaytxfee'],
|
||||
# Minimum fee rate increment for mempool limiting or replacement in PLM/kvB,
|
||||
# operator-configurable, static.
|
||||
'incrementalrelayfee': mempool_info['incrementalrelayfee'],
|
||||
'incrementalrelayfee': incrementalrelayfee,
|
||||
}
|
||||
|
||||
async def getrawtransaction(self, txid_hum: str, verbose=False):
|
||||
|
||||
Reference in new issue
Block a user