Skip to content

Conversation

@jmjatlanta
Copy link

This is an incremental step in getting the assetchain object to hold state that used to be for globals. See #509

This PR moves the formerly global object that was pointed to by the Params() method to within the assetchain class. This means that more than one instance of ChainParams can exist if more than one assetchain object exists. This has implications for modularity and testing.

As was stated in #509, this PR could be merged directly to dev or reviews could be done incrementally by reviewing/merging 507, then 509, then this one.

@jmjatlanta
Copy link
Author

The Bitcoin code base has moved to a similar concept. As they are further along than this is (a bit more "proven"), I'd like to use what they have. See https://github.com/bitcoin/bitcoin/blob/d3582f2d3bfebb32316aa3974f6f27db20a610f5/src/node/context.h#L39

@jmjatlanta
Copy link
Author

Closing in favor of following bitcoin's newer model of NodeContext

@jmjatlanta jmjatlanta closed this Feb 21, 2022
who-biz pushed a commit to who-biz/komodo that referenced this pull request May 31, 2023
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

Successfully merging this pull request may close these issues.

1 participant