Skip to content

Transactions are selectively mined on a private node #13635

@neptunix

Description

@neptunix

I've got a custom compiled bitcoin core node with changed accounts prefixes and blocks creation time.

This node runs mining and produces new block every ~1 min.
I create transactions using bitcoin-cli sendtoaddress and transactions appear in the mempool:

> bitcoin-cli -testnet sendtoaddress sZgFxHLG4AZFCZwVoGKbpBaVX7tve56478 20
b7b710e4599c98a5b97b4846b97ec9cc36a34ff6338dcdbd586110b77f5bfa57

It appears in the mempool

> bitcoin-cli -testnet getmempoolentry b7b710e4599c98a5b97b4846b97ec9cc36a34ff6338dcdbd586110b77f5bfa57

[
    {
        "fees": {
            "base": 0.000168,
            "modified": 0.000268,
            "ancestor": 0.000268,
            "descendant": 0.000268
        },
        "size": 168,
        "fee": 0.000168,
        "modifiedfee": 0.000268,
        "time": 1531315521,
        "height": 107039,
        "descendantcount": 1,
        "descendantsize": 168,
        "descendantfees": 26800,
        "ancestorcount": 1,
        "ancestorsize": 168,
        "ancestorfees": 26800,
        "wtxid": "d7bb3a08cdefcffe0d3ab129e553059c31bc3a9a431ed7e15b31f93e744d220f",
        "depends": [],
        "spentby": []
    }
]

The problem is - transactions are very selectively mined - like 2-3 transactions out of 20-30 created or less. Usually all of them come in one block.
The rest txs stay in mempool forever until I clean them.
Currently I've submitted 22 tx and none are mined after an hour.

prioritisetransaction does not help - it just increases tx fee.
version is: v0.16.99. Was built from master branch on Apr 27.

Configuration is as follows:

server=1
listen=1
testnet=1
rest=1
maxconnections=100
keypool=1000
txindex=1
addressindex=1
timestampindex=1
spentindex=1
disablewallet=0

maxtxfee=1
minrelaytxfee=0.000001
blockmintxfee=0.000001
mempoolexpiry=2

rpcallowip=127.0.0.1/32
rpcallowip=172.0.0.0/8
rpcallowip=10.0.0.0/8

Mining is run through rpc one block at a time in a loop.

Is there something I am missing?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions