fractal-bitcoin / fractal

MIT License
65 stars 22 forks source link

`generatetoaddress` method with chain `regtest` does not work properly #14

Open 1oid opened 1 month ago

1oid commented 1 month ago

bitcoind server command

bitcoind -chain=regtest -datadir=/mnt/bitcoin/regtest/data -rpcuser=user -rpcpassword=password

bitcoin-cli command

call createwallet and getnewaddress methods

bitcoin-cli -chain=regtest -rpcuser=user -rpcpassword=password createwallet test
bitcoin-cli -chain=regtest -rpcuser=user -rpcpassword=password -rpcwallet=test getnewaddress

call generatetoaddress method

bitcoin-cli -chain=regtest -rpcuser=user -rpcpassword=password -rpcwallet=test generatetoaddress 101 "2N6moXvzwhwfWGf2a1PJVREdzR2MBzFefpy"

get responsed

ProcessNewBlock, block not accepted

Server log errors

2024-09-19T11:13:05Z Using wallet directory /mnt/bitcoin/fractald/data/regtest/wallets
2024-09-19T11:13:05Z init message: Verifying wallet(s)…
2024-09-19T11:13:05Z Using /16 prefix for IP bucketing
2024-09-19T11:13:05Z init message: Loading P2P addresses…
2024-09-19T11:13:05Z Loaded 0 addresses from peers.dat  0ms
2024-09-19T11:13:05Z init message: Loading banlist…
2024-09-19T11:13:05Z SetNetworkActive: true
2024-09-19T11:13:05Z CBlockPolicyEstimator::Read(): unable to read policy estimator data (non-fatal): up-version (149900) fee estimate file
2024-09-19T11:13:05Z Failed to read fee estimates from /mnt/bitcoin/fractald/data/regtest/fee_estimates.dat. Continue anyway.