Skip to content

Commit

Permalink
[ETCM-468] scalafmt
Browse files Browse the repository at this point in the history
  • Loading branch information
lemastero committed Jan 19, 2021
1 parent 8fc7adc commit a245b4f
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/main/scala/io/iohk/ethereum/jsonrpc/EthService.scala
Expand Up @@ -976,7 +976,7 @@ class EthService(
* Returns the account- and storage-values of the specified account including the Merkle-proof.
*/
def getProof(req: GetProofRequest): ServiceResponse[GetProofResponse] = {
Future{
Future {
val bk: Option[Block] = resolveBlock(req.blockNumber).toOption.map(_.block)
val maybeAccount = for {
block <- bk
Expand All @@ -995,7 +995,12 @@ class EthService(
}
}

def getStorageProof(block: Block, account: Account, node: MptNode, storageKeys: Seq[StorageProofKey]): Seq[StorageProof] = {
def getStorageProof(
block: Block,
account: Account,
node: MptNode,
storageKeys: Seq[StorageProofKey]
): Seq[StorageProof] = {
// TODO current block header PoW hash
val key: StorageProofKey = ???
val value: BigInt = ???
Expand All @@ -1004,7 +1009,12 @@ class EthService(
???
}

def getAccountProof(block: Block, account: Account, node: MptNode, storageKeys: Seq[StorageProofKey]): Seq[ProofNode] = {
def getAccountProof(
block: Block,
account: Account,
node: MptNode,
storageKeys: Seq[StorageProofKey]
): Seq[ProofNode] = {
// ProofNode := An individual node used to prove a path down a merkle-patricia-tree
// TODO how to get proof for account ?
val b: ByteString = ???
Expand Down

0 comments on commit a245b4f

Please sign in to comment.