From 7590efdb3bc066c0b89d7c7a1a6b14374ac71cac Mon Sep 17 00:00:00 2001 From: Roman Mandeleil Date: Thu, 8 Jan 2015 19:49:12 +0200 Subject: [PATCH] Remove cpp snippet --- ethereumj-core/src/main/java/org/ethereum/vm/Program.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/ethereumj-core/src/main/java/org/ethereum/vm/Program.java b/ethereumj-core/src/main/java/org/ethereum/vm/Program.java index d4a34a7d..acf16648 100644 --- a/ethereumj-core/src/main/java/org/ethereum/vm/Program.java +++ b/ethereumj-core/src/main/java/org/ethereum/vm/Program.java @@ -576,13 +576,6 @@ public class Program { public DataWord getBlockHash(int index) { - // todo: - /// Hash of a block if within the last 256 blocks, or h256() otherwise. -// h256 blockhash(u256 _number) {return -// _number < currentBlock.number && _number >= (std::max(256, currentBlock.number) - 256) ? -// lastHashes[(unsigned)(currentBlock.number - 1 - _number)] : -// h256(); } - return index < this.getNumber().longValue() && index >= Math.max(256, this.getNumber().intValue()) - 256? new DataWord(this.invokeData.getBlockStore().getBlockHashByNumber(index)): DataWord.ZERO;