File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
chainbase/src/main/java/org/tron/core/service Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ private void calcMerkleRoot() {
142
142
DBIterator iterator = rewardViStore .iterator ();
143
143
iterator .seekToFirst ();
144
144
ArrayList <Sha256Hash > ids = Streams .stream (iterator )
145
- .map (this ::getMerkleHash )
145
+ .map (this ::getHash )
146
146
.collect (Collectors .toCollection (ArrayList ::new ));
147
147
148
148
Sha256Hash rewardViRootLocal = MerkleTree .getInstance ().createTree (ids ).getRoot ().getHash ();
@@ -153,7 +153,7 @@ private void calcMerkleRoot() {
153
153
logger .info ("calcMerkleRoot: {}" , rewardViRootLocal );
154
154
}
155
155
156
- private Sha256Hash getMerkleHash (Map .Entry <byte [], byte []> entry ) {
156
+ private Sha256Hash getHash (Map .Entry <byte [], byte []> entry ) {
157
157
return Sha256Hash .of (CommonParameter .getInstance ().isECKeyCryptoEngine (),
158
158
Bytes .concat (entry .getKey (), entry .getValue ()));
159
159
}
You can’t perform that action at this time.
0 commit comments