Alexis Hernandez
6 years ago
2 changed files with 31 additions and 0 deletions
@ -0,0 +1,19 @@ |
|||||
|
package com.xsn.explorer.models.persisted |
||||
|
|
||||
|
import com.xsn.explorer.models._ |
||||
|
|
||||
|
case class Block( |
||||
|
hash: Blockhash, |
||||
|
previousBlockhash: Option[Blockhash], |
||||
|
nextBlockhash: Option[Blockhash], |
||||
|
tposContract: Option[TransactionId], |
||||
|
merkleRoot: Blockhash, |
||||
|
size: Size, |
||||
|
height: Height, |
||||
|
version: Int, |
||||
|
time: Long, |
||||
|
medianTime: Long, |
||||
|
nonce: Long, |
||||
|
bits: String, |
||||
|
chainwork: String, |
||||
|
difficulty: BigDecimal) |
@ -0,0 +1,12 @@ |
|||||
|
package com.xsn.explorer.models |
||||
|
|
||||
|
/** |
||||
|
* The package represents the models that are persisted in the explorer's database. |
||||
|
* |
||||
|
* One reason why we require different models than what is used on the RPC calls |
||||
|
* is that there are fields which shouldn't be persisted, for example, the number |
||||
|
* of confirmations for a block. |
||||
|
*/ |
||||
|
package object persisted { |
||||
|
|
||||
|
} |
Loading…
Reference in new issue