Skip to content

Commit

Permalink
add message.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaohong committed Jun 24, 2018
1 parent 0bbec44 commit c9f7609
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/org/tron/core/capsule/BlockCapsule.java
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,7 @@ public void setMerkleRoot() {
public void setWitness(String witness) {
BlockHeader.raw blockHeaderRaw =
this.block.getBlockHeader().getRawData().toBuilder().setWitnessAddress(
ByteString.copyFrom(witness.getBytes()))
.setTxTrieRoot(calcMerkleRoot().getByteString()).build();
ByteString.copyFrom(witness.getBytes())).build();

this.block = this.block.toBuilder().setBlockHeader(
this.block.getBlockHeader().toBuilder().setRawData(blockHeaderRaw)).build();
Expand Down

0 comments on commit c9f7609

Please sign in to comment.