From ca2f8f4bf5affa80aa4bd80be421cb25c2feaeb1 Mon Sep 17 00:00:00 2001 From: Andrea V <1577639+karimodm@users.noreply.github.com> Date: Tue, 19 Sep 2023 11:35:13 +0200 Subject: [PATCH] Even mocked PoA needs to be imported to obtain pools' data --- .../sybilprotection/seatmanager/mock/mockseatmanager.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/protocol/sybilprotection/seatmanager/mock/mockseatmanager.go b/pkg/protocol/sybilprotection/seatmanager/mock/mockseatmanager.go index ba10e8baa..223f212df 100644 --- a/pkg/protocol/sybilprotection/seatmanager/mock/mockseatmanager.go +++ b/pkg/protocol/sybilprotection/seatmanager/mock/mockseatmanager.go @@ -119,7 +119,9 @@ func (m *ManualPOA) RotateCommittee(_ iotago.EpochIndex, _ *account.Accounts) *a func (m *ManualPOA) SetCommittee(_ iotago.EpochIndex, _ *account.Accounts) { } -func (m *ManualPOA) ImportCommittee(_ iotago.EpochIndex, _ *account.Accounts) { +func (m *ManualPOA) ImportCommittee(_ iotago.EpochIndex, validators *account.Accounts) { + m.accounts = validators + m.committee = m.accounts.SelectCommittee(validators.IDs()...) } func (m *ManualPOA) Shutdown() {}