Closed
Description
I'm running 0.18.1.3. I'm trying to claimpegin
in regtest.
elements.conf:
...
chain=elementsregtest
fedpegscript=51
validatepegin=1
initialfreecoins=1000000000
elementsregtest.wallet=spending01.dat
...
bitcoin.conf:
...
regtest=1
...
I generated a bunch of blocks on both blockchains, got a peginaddress
from elements:
elements-cli -rpcwallet=spending01.dat getpeginaddress
{
"mainchain_address": "2N3i4C56DiqfpdcAJsAdZd2xYpCQMRAroye",
"claim_script": "0014106785ca5a9fc67c1866c4eab1d899e96b3231bf"
}
...then sent bitcoins to the address. I got the proof, I made the tx block mature by generating a bunch of blocks, then:
elements-cli -rpcwallet=spending01.dat claimpegin "020000000001012b4b220caaa7faecc114ad492da438fa4635bce4cd94dbb3e8fc74e09e375aa80000000000fdffffff02e805102401000000160014f502bcc81bfa21370bb4ebdea605d7b2be5c7d9300e1f5050000000017a91472c44f957fc011d97e3406667dca5b1c930c402687024730440220119e4e98f6878897502bbcb2d05dbe0f23c861fed778f0e523166b2fad31f7d6022073f7e7f1ade1d89d5704552cbc786e5681a097c3579668efcd7d17d9a3343916012102d3ff9b9320b058a4dc62a8240cd8131f6d2e53b392c63cb1aad37b30f5e75f3565000000" "0000002091e02afdc2f9ae5d2de11f63f65108dd174c4c8ca2979b344586b1273bfc1f26c58af63dc915fe5c7c200c377bc9e877aec0dfb412a550370d62b90b1cfeb3b0cd5d3c5effff7f200000000002000000022937e62c2e77c3b4b06e7c06bd9048c96137ac981a837cda1784f095dd85447cb9fa33bd0496fc657684bacca497c5896f76115419e152d37e6d12b28b1722ab0105" 0014106785ca5a9fc67c1866c4eab1d899e96b3231bf
error code: -19
error message:
Wallet file not specified (must request wallet RPC through /wallet/<filename> uri-path).
Try adding "-rpcwallet=<filename>" option to elements-cli command line.
The thing is I actually specified (like all the other commands) the wallet.
I then tried to remove the -rpcwallet
arg:
elements-cli claimpegin "020000000001012b4b220caaa7faecc114ad492da438fa4635bce4cd94dbb3e8fc74e09e375aa80000000000fdffffff02e805102401000000160014f502bcc81bfa21370bb4ebdea605d7b2be5c7d9300e1f5050000000017a91472c44f957fc011d97e3406667dca5b1c930c402687024730440220119e4e98f6878897502bbcb2d05dbe0f23c861fed778f0e523166b2fad31f7d6022073f7e7f1ade1d89d5704552cbc786e5681a097c3579668efcd7d17d9a3343916012102d3ff9b9320b058a4dc62a8240cd8131f6d2e53b392c63cb1aad37b30f5e75f3565000000" "0000002091e02afdc2f9ae5d2de11f63f65108dd174c4c8ca2979b344586b1273bfc1f26c58af63dc915fe5c7c200c377bc9e877aec0dfb412a550370d62b90b1cfeb3b0cd5d3c5effff7f200000000002000000022937e62c2e77c3b4b06e7c06bd9048c96137ac981a837cda1784f095dd85447cb9fa33bd0496fc657684bacca497c5896f76115419e152d37e6d12b28b1722ab0105" "0014106785ca5a9fc67c1866c4eab1d899e96b3231bf"
error: Could not connect to the server 127.0.0.1:18885 (error code 1 - "EOF reached")
Make sure the daemon server is running and that you are connecting to the correct RPC port.
In this case, what I see on the elements side is a Segmentation fault
.
I can reproduce if you need more info. Thanks!
Metadata
Metadata
Assignees
Labels
No labels