From a2aa2a0dc310a60ef7f95e69424338f7599ac6b5 Mon Sep 17 00:00:00 2001 From: vyzo Date: Tue, 28 Mar 2023 17:56:35 +0300 Subject: [PATCH] Update chain/vm/execution.go Co-authored-by: Aayush Rajasekaran --- chain/vm/execution.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chain/vm/execution.go b/chain/vm/execution.go index 1642dc2f8..58f61ca6d 100644 --- a/chain/vm/execution.go +++ b/chain/vm/execution.go @@ -210,7 +210,7 @@ func init() { panic("insufficient execution concurrency") } - if priority > available-1 { + if available <= priority { panic("insufficient default execution concurrency") }