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

[2.x.x] Generate txhashset archives on 720 block intervals. #2919

Closed

Conversation

quentinlesceller
Copy link
Member

Replace #2813. Cause this previous PR was merged on master branch.

@@ -297,15 +299,17 @@ impl MessageHandler for Protocol {
sm_req.hash, sm_req.height
Copy link
Contributor

Choose a reason for hiding this comment

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

This log has been changed (in master before reverting) as:

				debug!(
					"handle_payload: txhashset request for {} at {}, response with {} at {}",
					sm_req.hash, sm_req.height, txhashset_header.height, txhashset_header_hash,
					"handle_payload: txhashset req for {} at {}",
					sm_req.hash, sm_req.height
				);

let mut genesis = genesis::genesis_dev();
let keychain = keychain::ExtKeychain::from_random_seed(false).unwrap();
let key_id = keychain::ExtKeychain::derive_key_id(0, 1, 0, 0, 0);
let reward = reward::output(&keychain, &key_id, 0, false).unwrap();
Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, some interfaces has been changed and the test code need a bit rework now:

error[E0061]: this function takes 5 parameters but 4 parameters were supplied
  --> chain/tests/chain_test_helper.rs:63:15
   |
63 |     let reward = reward::output(&keychain, &key_id, 0, false).unwrap();
   |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 5 parameters

error[E0061]: this function takes 5 parameters but 4 parameters were supplied
  --> chain/tests/chain_test_helper.rs:92:16
   |
92 |         let reward = libtx::reward::output(keychain, &pk, 0, false).unwrap();
   |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 5 parameters

@garyyu garyyu self-requested a review June 27, 2019 00:51
@quentinlesceller
Copy link
Member Author

Hi @cadmuspeverell, could you be able to make these changes? However I can copy your branch and do it.

@antiochp antiochp changed the title Generate txhashset archives on 720 block intervals. [2.x.x] Generate txhashset archives on 720 block intervals. Jul 11, 2019
@antiochp antiochp added this to the 2.x.x milestone Jul 11, 2019
@quentinlesceller
Copy link
Member Author

Closed for #2951.

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

Successfully merging this pull request may close these issues.

4 participants