-
Notifications
You must be signed in to change notification settings - Fork 219
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
fix(validators): check input metadata matches spending output #3761
fix(validators): check input metadata matches spending output #3761
Conversation
a05d6e1
to
04c200f
Compare
08a9ea5
to
494d966
Compare
494d966
to
6e25b10
Compare
facdade
to
2357540
Compare
2357540
to
ca517b7
Compare
57048d2
to
25c30f2
Compare
25c30f2
to
8e3d4ac
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I just have a NIT about some of the logs
@@ -374,6 +374,8 @@ where B: BlockchainBackend + 'static | |||
.await?, | |||
self.consensus_manager.get_block_reward_at(height), | |||
); | |||
|
|||
debug!(target: LOG_TARGET, "New template block: {}", block_template); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
debug!(target: LOG_TARGET, "New template block: {}", block_template); | |
trace!(target: LOG_TARGET, "New template block: {}", block_template); |
this can be a very large log
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough, I'll leave that for another PR so that we dont have to rerun tests
@@ -716,7 +716,8 @@ impl tari_rpc::base_node_server::BaseNode for BaseNodeGrpcServer { | |||
let block = Block::try_from(request) | |||
.map_err(|e| Status::invalid_argument(format!("Failed to convert arguments. Invalid block: {:?}", e)))?; | |||
let block_height = block.header.height; | |||
debug!( | |||
debug!(target: LOG_TARGET, "Miner submitted block: {}", block); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
debug!(target: LOG_TARGET, "Miner submitted block: {}", block); | |
trace!(target: LOG_TARGET, "Miner submitted block: {}", block); |
This will be a very large log
@@ -384,6 +386,7 @@ where B: BlockchainBackend + 'static | |||
Ok(NodeCommsResponse::NewBlockTemplate(block_template)) | |||
}, | |||
NodeCommsRequest::GetNewBlock(block_template) => { | |||
debug!(target: LOG_TARGET, "Prepared block: {}", block_template); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
debug!(target: LOG_TARGET, "Prepared block: {}", block_template); | |
trace!(target: LOG_TARGET, "Prepared block: {}", block_template); |
@@ -675,6 +679,7 @@ where B: BlockchainBackend + 'static | |||
.map(|p| format!("remote peer: {}", p)) | |||
.unwrap_or_else(|| "local services".to_string()) | |||
); | |||
debug!(target: LOG_TARGET, "Incoming block: {}", block); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
debug!(target: LOG_TARGET, "Incoming block: {}", block); | |
trace!(target: LOG_TARGET, "Incoming block: {}", block); |
Debug is fine. Info would be a problem |
* development: (29 commits) feat(base-node): add base node prometheus metrics (tari-project#3773) fix(ffi): mut pointers should be const (tari-project#3775) chore: update launchpad for dibbler (tari-project#3769) v0.27.3 fix(ffi): missing param in header.h (tari-project#3774) v0.27.2 v0.27.2 fix(ffi): fix bad access (tari-project#3772) chore(collectibles): fix eslint v0.27.1 fix(ffi): fix null pointer assignment in import_utxo (tari-project#3770) fix(validators): check input metadata matches spending output (tari-project#3761) v0.27.0 feat(ffi)!: Add commitment_signature_create and destroy (tari-project#3768) feat(ffi)!: add features, metadata_signature and sender_offset_public_key to import_utxo (tari-project#3767) feat(explorer): better view on mempool (tari-project#3763) feat: update the available balance in console wallet (tari-project#3760) chore: reclassify very long log message (tari-project#3752) fix: fix cucumber test for standard recovery (tari-project#3757) style: format with prettier (same settings as in integration tests) (tari-project#3756) ...
Description
Motivation and Context
How Has This Been Tested?
New unit tests, manually by testing the invalid faucet utxo is rejected