solution: revise for the latest etherjar
This commit is contained in:
@@ -52,7 +52,7 @@ class StreamHead(
|
||||
return BlockchainOuterClass.ChainHead.newBuilder()
|
||||
.setChainValue(chain.id)
|
||||
.setHeight(block.number)
|
||||
.setTimestamp(block.timestamp.time)
|
||||
.setTimestamp(block.timestamp.toEpochMilli())
|
||||
.setWeight(ByteString.copyFrom(block.totalDifficulty.toByteArray()))
|
||||
.setBlockId(block.hash.toHex().substring(2))
|
||||
.build()
|
||||
|
||||
@@ -197,7 +197,7 @@ class TrackTx(
|
||||
return if (block.number != null && block.totalDifficulty != null) {
|
||||
tx.withStatus(
|
||||
blockTotalDifficulty = block.totalDifficulty,
|
||||
blockTime = block.timestamp.toInstant()
|
||||
blockTime = block.timestamp
|
||||
)
|
||||
} else {
|
||||
tx.withStatus(
|
||||
|
||||
Reference in New Issue
Block a user