-
Notifications
You must be signed in to change notification settings - Fork 1.5k
fix(crypto): resolve the invalid witness #6368
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
base: release_v4.8.1
Are you sure you want to change the base?
fix(crypto): resolve the invalid witness #6368
Conversation
framework/src/main/java/org/tron/core/metrics/node/NodeMetricManager.java
Show resolved
Hide resolved
…_witness # Conflicts: # framework/src/test/java/org/tron/core/zksnark/ShieldedReceiveTest.java
@@ -72,6 +72,8 @@ public void start() { | |||
if (null == witnessCapsule) { | |||
logger.warn("Witness {} is not in witnessStore.", Hex.toHexString(witnessAddress)); | |||
} | |||
// In multi-signature mode, the address derived from the private key may differ from | |||
// witnessAddress. | |||
Miner miner = param.new Miner(privateKey, ByteString.copyFrom(privateKeyAddress), | |||
ByteString.copyFrom(witnessAddress)); | |||
miners.add(miner); |
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.
How to handle it when privateKeys.size() == 0 ?
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.
If the privateKeys.size() == 0
, miners
will be empty, DposTask
will not execute. So we need not to handle it.
if (!dposService.isEnable() || ObjectUtils.isEmpty(dposService.getMiners())) {
return;
}
0b5646b
to
3b6fe6c
Compare
What does this PR do?
Closes #6281