From ca071eedfe2dd62d74aa24acad51107a27db25cb Mon Sep 17 00:00:00 2001 From: Chiwon Cho Date: Wed, 6 Dec 2023 11:51:22 +0900 Subject: [PATCH 1/2] Change AccumulatedValidationFailurePenaltyCondition from 5 to 3 after IISS4R1 --- icon/revision.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/icon/revision.go b/icon/revision.go index e5f31c1ec..ac98c28c7 100644 --- a/icon/revision.go +++ b/icon/revision.go @@ -354,6 +354,9 @@ func onRevIISS4R1(s *chainScore, _, _ int) error { if err := es.State.SetIISSVersion(icstate.IISSVersion4); err != nil { return err } + if err := es.State.SetConsistentValidationPenaltyCondition(3); err != nil { + return err + } return nil } From 20efe1c2914106e19f60b8370519f55152416847 Mon Sep 17 00:00:00 2001 From: Chiwon Cho Date: Wed, 6 Dec 2023 14:39:04 +0900 Subject: [PATCH 2/2] Clean up trivial comments from icon/revision.go --- icon/revision.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/icon/revision.go b/icon/revision.go index ac98c28c7..255953707 100644 --- a/icon/revision.go +++ b/icon/revision.go @@ -317,7 +317,6 @@ func onRevBlockAccounts2(s *chainScore, _, _ int) error { return nil } -// onRevision23 handles states in PreIISS4 phase func onRevIISS4R0(s *chainScore, rev, _ int) error { es := s.cc.GetExtensionState().(*iiss.ExtensionStateImpl) @@ -346,7 +345,6 @@ func onRevIISS4R0(s *chainScore, rev, _ int) error { return nil } -// onRevision24 handles states in IISS4 phase func onRevIISS4R1(s *chainScore, _, _ int) error { es := s.cc.GetExtensionState().(*iiss.ExtensionStateImpl)