Closed
Description
It is hard to reproduce when using the spaces under normal circumstances, but one can reproduce it quite consistently using regtest.
Run bitcoin with some small rpcworkqueue
param (for me 5 works the best), run spaces
, create a wallet and generate some blocks.
bitcoind -regtest -datadir=bitcoin-regtest/ -rpcworkqueue=5
cargo run --bin spaced -- --chain regtest --bitcoin-rpc-user test --bitcoin-rpc-password test
cargo run --bin space-cli -- --chain regtest createwallet
bitcoin/build/src/bitcoin-cli -regtest -rpcuser=test -rpcpassword=test generatetoaddress 100 bcrt1pmmtxcltp7yq7w0d9sh3gk4xalx43q3tzhrxxyy0lmvul7rhj8hcqm8wc8y
You should have a error as following (generate more blocks if you don't)
ERROR spaced] Protocol sync error: RPC error: Transport: HTTP status server error (503 Service Unavailable) for url (http://127.0.0.1:18443/)
Also sometimes you can also have stack overflow error, but I couldn't reproduce it more than 2 times
thread '<unknown>' has overflowed its stack
fatal runtime error: stack overflow
Aborted
Now repeat it till it breaks
cargo run --bin spaced -- --chain regtest --bitcoin-rpc-user test --bitcoin-rpc-password test
cargo run --bin space-cli -- --chain regtest loadwallet
bitcoin/build/src/bitcoin-cli -regtest -rpcuser=test -rpcpassword=test generatetoaddress 100 bcrt1pmmtxcltp7yq7w0d9sh3gk4xalx43q3tzhrxxyy0lmvul7rhj8hcqm8wc8y
After few repeats you will have a bincode
error when trying to load the wallet.
This also sometimes happens with the default rpcworkqueue
param and for testnet4
(at least).
Metadata
Metadata
Assignees
Labels
No labels