aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/state_manager.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-06-20 06:42:26 +0800
committerobscuren <geffobscura@gmail.com>2014-06-20 06:42:26 +0800
commit8f29f6a4d4e2c62d3eff0dfd84cc8cab59dd28e8 (patch)
treed5f290534ddbbcfe3aba61bd5865e36544f161ce /ethchain/state_manager.go
parent6fcc6a2f7c35f10a8be3fc90bab39f2865adace9 (diff)
downloadgo-tangerine-8f29f6a4d4e2c62d3eff0dfd84cc8cab59dd28e8.tar
go-tangerine-8f29f6a4d4e2c62d3eff0dfd84cc8cab59dd28e8.tar.gz
go-tangerine-8f29f6a4d4e2c62d3eff0dfd84cc8cab59dd28e8.tar.bz2
go-tangerine-8f29f6a4d4e2c62d3eff0dfd84cc8cab59dd28e8.tar.lz
go-tangerine-8f29f6a4d4e2c62d3eff0dfd84cc8cab59dd28e8.tar.xz
go-tangerine-8f29f6a4d4e2c62d3eff0dfd84cc8cab59dd28e8.tar.zst
go-tangerine-8f29f6a4d4e2c62d3eff0dfd84cc8cab59dd28e8.zip
Removed some logging
Diffstat (limited to 'ethchain/state_manager.go')
-rw-r--r--ethchain/state_manager.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/ethchain/state_manager.go b/ethchain/state_manager.go
index 59cd8eec6..36ba1731c 100644
--- a/ethchain/state_manager.go
+++ b/ethchain/state_manager.go
@@ -281,10 +281,12 @@ func (sm *StateManager) ValidateBlock(block *Block) error {
return ValidationError("Block timestamp less then prev block %v", diff)
}
+ /* XXX
// New blocks must be within the 15 minute range of the last block.
if diff > int64(15*time.Minute) {
return ValidationError("Block is too far in the future of last block (> 15 minutes)")
}
+ */
// Verify the nonce of the block. Return an error if it's not valid
if !sm.Pow.Verify(block.HashNoNonce(), block.Difficulty, block.Nonce) {