Skip to content

Commit 976ee4e

Browse files
committed
🔊add debug log
1 parent 8a46fa8 commit 976ee4e

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

‎src/main/java/org/tron/common/utils/ForkController.java‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,7 @@ public synchronized void update(BlockCapsule blockCapsule) {
6565
}
6666

6767
ByteString witness = blockCapsule.getWitnessAddress();
68-
int slot = 0;
69-
for (ByteString scheduledWitness : witnesses) {
70-
if (!Arrays.equals(scheduledWitness.toByteArray(), witness.toByteArray())) {
71-
++slot;
72-
}
73-
}
68+
int slot = witnesses.indexOf(witness);
7469

7570
logger.info(
7671
"*******update:" + Arrays.toString(slots)

0 commit comments

Comments
 (0)