Skip to content

Commit e46b1d0

Browse files
committed
fix dataword
1 parent 19f9780 commit e46b1d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

actuator/src/main/java/org/tron/core/vm/program/Program.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,7 @@ public DataWord getBlockHash(int index) {
10551055
BlockCapsule blockCapsule = contractState.getBlockByNum(index);
10561056

10571057
if (Objects.nonNull(blockCapsule)) {
1058-
return new DataWord(blockCapsule.getBlockId().getBytes());
1058+
return new DataWord(blockCapsule.getBlockId().getBytes()).clone();
10591059
} else {
10601060
return DataWord.ZERO.clone();
10611061
}

0 commit comments

Comments
 (0)