aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wampler-Doty <matthew.wampler.doty@gmail.com>2015-02-27 23:17:31 +0800
committerMatthew Wampler-Doty <matthew.wampler.doty@gmail.com>2015-03-03 07:56:11 +0800
commit080823bdeebbab2bcffdaefad703896700ed2c30 (patch)
tree55adad53661a8c39ca77b350e303b0260e4582c9 /core
parentba1f4bbe9132103af67c0c46f81c913d6a595d77 (diff)
downloadgo-tangerine-080823bdeebbab2bcffdaefad703896700ed2c30.tar.gz
go-tangerine-080823bdeebbab2bcffdaefad703896700ed2c30.tar.zst
go-tangerine-080823bdeebbab2bcffdaefad703896700ed2c30.zip
Only one uncle
Diffstat (limited to 'core')
-rw-r--r--core/block_processor.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/block_processor.go b/core/block_processor.go
index efad35bf4..aef53c940 100644
--- a/core/block_processor.go
+++ b/core/block_processor.go
@@ -255,6 +255,10 @@ func (sm *BlockProcessor) ValidateBlock(block, parent *types.Block) error {
return fmt.Errorf("GasLimit check failed for block %v, %v", block.Header().GasLimit, expl)
}
+ if len(block.Uncles()) > 1 {
+ return ValidationError("Block can only contain one uncle (contained %v)", len(block.Uncles()))
+ }
+
if block.Time() < parent.Time() {
return ValidationError("Block timestamp not after prev block (%v - %v)", block.Header().Time, parent.Header().Time)
}
ns'>-0/+35 * graphics/gmic: Update 2.4.3 -> 2.4.5yuri2019-01-222-4/+4 * Update to 4.3.1_0bapt2019-01-212-4/+4 * Re-add port: Infinite evolving crowdsourced artworkyuri2019-01-2114-0/+240 * New port: Cross-platform extension loading library for OpenGLyuri2019-01-216-0/+83 * graphics/okular: make dependency on misc/kf5-purpose optionaltcberner2019-01-201-3/+8 * Update to 1.0.2sunpoet2019-01-203-9/+8 * Mark BROKEN: fails to configureantoine2019-01-201-0/+2 * graphics/kdiagram: fix master sites.tcberner2019-01-191-1/+1 * Update to 2.6.0joneum2019-01-192-4/+4 * graphics/waylandpp: Use system pugixml after r490645tobik2019-01-191-2/+4 * graphics/cloudcompare: update to 2.10.1swills2019-01-182-5/+4 * graphics/kdiagram: update to 2.6.1tcberner2019-01-183-6/+9 * lang/rust: update to 1.32.0jbeich2019-01-181-0/+1 * Don't reference obsolete drm-*-kmod portsjbeich2019-01-181-1/+1 * graphics/mesa-{libs,dri}: update to 18.3.2jbeich2019-01-1710-34/+159 * graphics/mesa-{libs,dri}: update to 18.2.8jbeich2019-01-1714-109/+145 * - Switch from sdl1 to sdl2ehaupt2019-01-171-4/+7 * Update to 0.20sunpoet2019-01-173-5/+11 * Fix Qt5 symbol version scripts to put the catch-all clause first. Whentijl2019-01-16