Skip to content

Commit 49a4e66

Browse files
committed
fix conflict
1 parent ac56558 commit 49a4e66

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/org/tron/core/db/Manager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ private void switchFork(BlockCapsule newHead) {
417417

418418
if (CollectionUtils.isNotEmpty(binaryTree.getValue())) {
419419
while (!getDynamicPropertiesStore().getLatestBlockHeaderHash().equals(
420-
binaryTree.getValue().peekLast().getParentHash().getBytes())) {
420+
binaryTree.getValue().peekLast().getParentHash())) {
421421
try {
422422
eraseBlock();
423423
} catch (BadItemException e) {

src/test/java/org/tron/core/db/ManagerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,9 @@ public void fork() throws ValidateSignatureException,
233233
Assert.assertEquals(dbManager.getBlockIdByNum(dbManager.getHead().getNum() - 2),
234234
blockCapsule1.getParentHash());
235235

236-
Assert.assertEquals(blockCapsule2.getBlockId().getByteString(),
236+
Assert.assertEquals(blockCapsule2.getBlockId(),
237237
dbManager.getDynamicPropertiesStore().getLatestBlockHeaderHash());
238-
Assert.assertEquals(dbManager.getHead().getBlockId().getByteString(),
238+
Assert.assertEquals(dbManager.getHead().getBlockId(),
239239
dbManager.getDynamicPropertiesStore().getLatestBlockHeaderHash());
240240
}
241241

0 commit comments

Comments
 (0)