Skip to content

nightly: fix masternode identities and other fixes. - #992

Merged
QuantumExplorer merged 17 commits into
v0.25-devfrom
nightly/25April23
Apr 28, 2023
Merged

nightly: fix masternode identities and other fixes.#992
QuantumExplorer merged 17 commits into
v0.25-devfrom
nightly/25April23

Conversation

@QuantumExplorer

@QuantumExplorer QuantumExplorer commented Apr 28, 2023

Copy link
Copy Markdown
Member

Issue being fixed or feature implemented

This PR mainly is a partial rewrite of masternode identities.

What was done?

It also adds to the mimic executor a phase for tenderdash process proposal after prepare proposal. This allows tests to be able get back the appropriate block hash and compare it on finalize block, as well as mimic real tenderdash execution.
There is also a refactoring of strategy tests into files.

How Has This Been Tested?

There is a new testing strategy that mimics a large amount of masternode and HPMN updates that get applied as the chain progresses.

Breaking Changes

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

Comment thread packages/rs-drive-abci/src/abci/handlers.rs
seconds: (time_ms / 1000) as i64,
nanos: ((time_ms % 1000) * 1000) as i32,
}),
next_validators_hash: vec![],

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

next_validators_hash is required and must have 32 bytes

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay, I'll put a random number for now.

pub(crate) fn update_core_info(
&self,
state: &mut PlatformState,
platform_state: Option<&PlatformState>,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please update documentation above

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

fn reverse(data: &[u8]) -> Vec<u8> {
let mut data = data.to_vec();
data.reverse();
// data.reverse();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we still have to reverse protxhash

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do it right after in another PR right after, I'm afraid it will be a lot of changing of tests, and I have things green right now :)

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.

4 participants