Anyone out there know how to load blocks from blk*.dat files into core?

I have an offline node fed data via satellite and it was offline…I can wait a few weeks to get it back in sync, but I have other online nodes that are in sync.

I don’t want to bring my offline node online for security reasons, but I figure how hard could it be to just bitcoind -loadblock=*.dat ?

Reply to this note

Please Login to reply.

Discussion

I figured it out. I wasn’t sure which blk file held the transactions I needed and initially only loaded the last 50 or so blk files, when I did bitcoin -loadblock=blk03700.dat -loadblock=blk03701.dat … for the last 150 or so blk files it worked perfectly.

Took a little fiddling to make every file in a directory into a -loadblock=file argument on the command line. Linux probably has a dozen ways to do this in one step, but I did it in a multi step process.