Skip to content

Commit

Permalink
update parenthash decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
Rovak committed Jun 18, 2018
1 parent 6c41f2a commit 49e4291
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/org/tronscan/importer/FullNodeReader.scala
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class FullNodeReader @Inject()(
hash = block.hash,
timestamp = new DateTime(header.timestamp),
txTrieRoot = Base58.encode58Check(header.txTrieRoot.toByteArray),
parentHash = Sha256Hash.wrap(header.parentHash.toByteArray).toString,
parentHash = Sha256Hash.wrap(header.parentHash).toString,
witnessId = header.witnessId,
witnessAddress = Base58.encode58Check(header.witnessAddress.toByteArray),
nrOfTrx = block.transactions.size,
Expand Down
2 changes: 1 addition & 1 deletion app/org/tronscan/importer/SolidityNodeReader.scala
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ class SolidityNodeReader @Inject()(
hash = blockHash,
timestamp = new DateTime(header.timestamp),
txTrieRoot = Base58.encode58Check(header.txTrieRoot.toByteArray),
parentHash = ByteUtil.toHexString(header.parentHash.toByteArray),
parentHash = Sha256Hash.wrap(header.parentHash).toString,
witnessId = header.witnessId,
witnessAddress = Base58.encode58Check(header.witnessAddress.toByteArray),
nrOfTrx = solidityBlock.transactions.size,
Expand Down

0 comments on commit 49e4291

Please sign in to comment.