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

reclaim rnid from Lattice Generator #43

Closed
oschulte opened this issue Jul 14, 2017 · 2 comments
Closed

reclaim rnid from Lattice Generator #43

oschulte opened this issue Jul 14, 2017 · 2 comments

Comments

@oschulte
Copy link
Collaborator

oschulte commented Jul 14, 2017

LatticeGenerator should have been rewritten so that instead of messing up rnid in Rnodes, it works with a copy shortrnid of rnid. Here's a suggestion.

  1. in LatticeGenerator, replace start by copying Rnodes to a temporary table called LatticeRnodes. E.g.
    • create table LatticeRNodes as select * from RNodes .
  2. Replace all references to Rnodes table by LatticeRnodes. The lattice generator is free to mess up the LatticeRnodes.
  3. change the column name lattice_membership.name to lattice_membership.Rchain.
  4. Using the lattice-fix script, change the column names lattice_membership.orig_rnid to lattice_membership.member.rnid and lattice_rel.orig_rnid to lattice_rel.rnid_removed.
@oschulte oschulte mentioned this issue Jul 17, 2017
12 tasks
@vidhiJain
Copy link
Contributor

In LatticeGenerator,, the rnid (i.e. short rnid) are populated. Before running LatticeGenerator, the rnid column is entirely NULL.

So here is the current flow of information in RNodes table:

  1. MakeSetup.java creates a table RNodes in <db>_setup and populates all the fields but leaves rnid as NULL.
  2. transfer.sql creates a copy of RNodes from <db>_setup to <db>_BN .
  3. short_rnid_LatticeGenerator.java, first of all, populates the rnid column of the table RNodes in <db>_BN and then performs its work.

@oschulte
Copy link
Collaborator Author

thanks!

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

2 participants