Instalé bitcoin, siguiendo estas instrucciones.
Lo usé principalmente con bitcoin-qt -testnet
opciones, incluso hice algunas transacciones en testnet. Estoy usando el modo podado.
Ahora quiero ejecutar bitcoind
y luego conectarme bitcoin-cli
a él.
Pero cuando ejecuto el siguiente comando: bitcoind -testnet
, obtengo el siguiente resultado:
punnysher@punnysher ~ $ bitcoind -testnet
2018-11-16T09:16:40Z Bitcoin Core version v0.17.0.1 (release build)
2018-11-16T09:16:40Z InitParameterInteraction: parameter interaction: -whitelistforcerelay=1 -> setting -whitelistrelay=1
2018-11-16T09:16:40Z Assuming ancestors of block 0000000000000037a8cd3e06cd5edbfe9dd1dbcc5dacab279376ef7cfc2b4c75 have valid signatures.
2018-11-16T09:16:40Z Setting nMinimumChainWork=00000000000000000000000000000000000000000000007dbe94253893cbd463
2018-11-16T09:16:40Z Using the 'sse4(1way),sse41(4way),avx2(8way)' SHA256 implementation
2018-11-16T09:16:40Z Using RdRand as an additional entropy source
2018-11-16T09:16:40Z Default data directory /home/punnysher/.bitcoin
2018-11-16T09:16:40Z Using data directory /home/punnysher/.bitcoin/testnet3
2018-11-16T09:16:40Z Using config file /home/punnysher/.bitcoin/bitcoin.conf
2018-11-16T09:16:40Z Using at most 125 automatic connections (1024 file descriptors available)
2018-11-16T09:16:40Z Using 16 MiB out of 32/2 requested for signature cache, able to store 524288 elements
2018-11-16T09:16:40Z Using 16 MiB out of 32/2 requested for script execution cache, able to store 524288 elements
2018-11-16T09:16:40Z Using 4 threads for script verification
2018-11-16T09:16:40Z scheduler thread start
2018-11-16T09:16:40Z HTTP: creating work queue of depth 16
2018-11-16T09:16:40Z No rpcpassword set - using random cookie authentication.
2018-11-16T09:16:40Z Generated RPC authentication cookie /home/punnysher/.bitcoin/testnet3/.cookie
2018-11-16T09:16:40Z HTTP: starting 4 worker threads
2018-11-16T09:16:40Z Using wallet directory /home/punnysher/.bitcoin/testnet3/wallets
2018-11-16T09:16:40Z init message: Verifying wallet(s)...
2018-11-16T09:16:40Z Using BerkeleyDB version Berkeley DB 4.8.30: (April 9, 2010)
2018-11-16T09:16:40Z Using wallet wallet.dat
2018-11-16T09:16:40Z BerkeleyEnvironment::Open: LogDir=/home/punnysher/.bitcoin/testnet3/wallets/database ErrorFile=/home/punnysher/.bitcoin/testnet3/wallets/db.log
2018-11-16T09:16:40Z Cache configuration:
2018-11-16T09:16:40Z * Using 2.0MiB for block index database
2018-11-16T09:16:40Z * Using 8.0MiB for chain state database
2018-11-16T09:16:40Z * Using 440.0MiB for in-memory UTXO set (plus up to 286.1MiB of unused mempool space)
2018-11-16T09:16:40Z init message: Loading block index...
2018-11-16T09:16:40Z Opening LevelDB in /home/punnysher/.bitcoin/testnet3/blocks/index
2018-11-16T09:16:40Z Opened LevelDB successfully
2018-11-16T09:16:40Z Using obfuscation key for /home/punnysher/.bitcoin/testnet3/blocks/index: 0000000000000000
2018-11-16T09:16:48Z LoadBlockIndexDB: last block file = 154
2018-11-16T09:16:48Z LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=2233, size=44632870, heights=1441380...1443684, time=2018-10-31...2018-11-16)
2018-11-16T09:16:48Z Checking all blk files are present...
2018-11-16T09:16:48Z LoadBlockIndexDB(): Block files have previously been pruned
2018-11-16T09:16:48Z : You need to rebuild the database using -reindex to go back to unpruned mode. This will redownload the entire blockchain.
Please restart with -reindex or -reindex-chainstate to recover.
: You need to rebuild the database using -reindex to go back to unpruned mode. This will redownload the entire blockchain.
Please restart with -reindex or -reindex-chainstate to recover.
2018-11-16T09:16:48Z Aborted block database rebuild. Exiting.
2018-11-16T09:16:48Z Shutdown: In progress...
2018-11-16T09:16:48Z scheduler thread interrupt
2018-11-16T09:16:48Z Shutdown: done
punnysher@punnysher ~ $
el mensaje dice
2018-11-16T09:16:48Z LoadBlockIndexDB(): los archivos de bloque se han eliminado previamente
2018-11-16T09:16:48Z : Debe reconstruir la base de datos usando -reindex para volver al modo sin podar. Esto volverá a descargar toda la cadena de bloques.
Reinicie con -reindex o -reindex-chainstate para recuperarse.
Si ha estado ejecutando en modo podado, bitcoind ha estado podando la cadena de bloques. Esto significa que ha descartado datos para ahorrar espacio en disco.
Para ejecutar en modo no podado, debe recuperar los datos que faltan. El método proporcionado es descargar toda la cadena de bloques nuevamente.
La única alternativa obvia es, presumiblemente, ejecutar en modo podado.
Preguntas relacionadas:
Enlaces relacionados:
https://bitcointalk.org/index.php?topic=1599458.0 (agosto de 2016)
Bien, tengo una pregunta. Diga: Habilité el modo de poda y Bitcoin Core comenzó a funcionar efectivamente en este modo. Pero es un boleto de ida si alguna vez quiero volver al modo 'completo', necesito descargar y verificar toda la cadena de bloques una vez más, ¿no hay atajos?
Sí, tendrás que volver a descargar toda la cadena de bloques, no hay atajos
rojoarenosoladrillo
Vijay Chavda