From 0f00eb3375ad50646d6e2b0ac5163a3b9e66628b Mon Sep 17 00:00:00 2001 From: Ceyhun Onur Date: Fri, 13 Sep 2024 10:36:31 +0300 Subject: [PATCH] remove state commit on disconnect --- vms/platformvm/vm.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/vms/platformvm/vm.go b/vms/platformvm/vm.go index ba86190e953b..eef68035df24 100644 --- a/vms/platformvm/vm.go +++ b/vms/platformvm/vm.go @@ -487,9 +487,6 @@ func (vm *VM) Disconnected(ctx context.Context, nodeID ids.NodeID) error { if err := vm.uptimeManager.Disconnect(nodeID); err != nil { return err } - if err := vm.state.Commit(); err != nil { - return err - } return vm.Network.Disconnected(ctx, nodeID) }