Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LevelDB IO issue #1

Closed
SmartArray opened this issue Aug 14, 2020 · 4 comments
Closed

LevelDB IO issue #1

SmartArray opened this issue Aug 14, 2020 · 4 comments

Comments

@SmartArray
Copy link
Owner

SmartArray commented Aug 14, 2020

Waiting for RPC node to be ready...
/home/digibyte/rosetta/digibyte-rosetta-server/node_modules/levelup/lib/levelup.js:119
      return callback(new OpenError(err))
                      ^
OpenError: IO error: /home/digibyte/rosetta/digibyte-rosetta-server/data2/metadata/LOCK: No such file or directory

This error happens although the mentioned file exists.

Potential fix: Use only one instance of leveldb file.

@SmartArray SmartArray changed the title LevelDB issue LevelDB IO issue Aug 14, 2020
@SmartArray
Copy link
Owner Author

Only one LevelDB instance will be used now: 6359615

Keys are all encoded with prefix bytes:

const PREFIX_BLOCK_SYM     = 'B';
const PREFIX_TX_SYM        = 'T';
const PREFIX_UTXO          = 'U';
const PREFIX_ADDRESS_UTXOS = 'X';

to have different namespaces within the data.
All keys are encoded as binary data, or at least strings.

@SmartArray
Copy link
Owner Author

Removed ADDRESS_SYM namespace: 1149fc8

@SmartArray
Copy link
Owner Author

SmartArray commented Aug 15, 2020

First test sync to block 5000 worked quite well.
However, restarting the node doesn't sync from the previous checkpoint.

@SmartArray
Copy link
Owner Author

Fixed with: e51820e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant