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

RPC only explorer #3

Merged
merged 7 commits into from
Aug 5, 2019
Merged

RPC only explorer #3

merged 7 commits into from
Aug 5, 2019

Conversation

easeev
Copy link
Member

@easeev easeev commented Aug 2, 2019

Description

This PR introduces a way to run MultiChain Explorer without access to the node data directory:

  • Genesis tx is fetched via RPC
  • Blockchain parameters are fetched via RPC
  • dirname in config can be set to anything, e.g. /foo/bar (can be potentially eliminated at all but requires refactoring)

Observation

chain-name parameter is currently empty in API calls (save_blkfile_offset() is not executed -> datadir table is empty -> get_multichain_name_by_id() returns None). Looks like it works perfectly in any of 3 scenarios:

  • It is not set at all
  • It is empty
  • It is set to the actual network chain-name

Was it ever required? Checked the oldest node ND-241-981-577 running 2.0-beta-1, all the same.

@easeev easeev requested a review from hayorov August 2, 2019 17:46
@hayorov hayorov merged commit 5838b3b into master Aug 5, 2019
@hayorov hayorov deleted the feature/rpc-only branch August 5, 2019 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants