Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. debug.log:
  2. 2017-02-22 21:15:33 Initializing databases...
  3. 2017-02-22 21:15:33 Unable to open file /home/mainnet/.bitcoin/blocks/blk00000.dat
  4. 2017-02-22 21:15:33 Unable to open file /home/mainnet/.bitcoin/blocks/blk00000.dat
  5. 2017-02-22 21:15:33 ERROR: WriteBlockToDisk: OpenBlockFile failed
  6. 2017-02-22 21:15:33 ERROR: LoadBlockIndex(): writing genesis block to disk failed
  7.  
  8. src/validation.cpp:1111
  9. bool WriteBlockToDisk(const CBlock& block, CDiskBlockPos& pos, const CMessageHeader::MessageStartChars& messageStart)
  10. {
  11. // Open history file to append
  12. CAutoFile fileout(OpenBlockFile(pos), SER_DISK, CLIENT_VERSION);
  13. if (fileout.IsNull())
  14. return error("WriteBlockToDisk: OpenBlockFile failed");
  15.  
  16. src/validation.cpp:3432
  17. FILE* OpenDiskFile(const CDiskBlockPos &pos, const char *prefix, bool fReadOnly)
  18. {
  19. if (pos.IsNull())
  20. return NULL;
  21. boost::filesystem::path path = GetBlockPosFilename(pos, prefix);
  22. boost::filesystem::create_directories(path.parent_path());
  23. FILE* file = fopen(path.string().c_str(), "rb+");
  24. if (!file && !fReadOnly)
  25. file = fopen(path.string().c_str(), "wb+");
  26. if (!file) {
  27. LogPrintf("Unable to open file %s\n", path.string());
  28. return NULL;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement