private void ParseAndApplyAccountStateDiff() { uint modded = _reader.ReadUint32(); for (var i = 0; i < modded; i++) { var b = _state.Update(_reader.ReadLedgerEntry()); if (!b) { throw new AssertionError(); } } uint deleted = _reader.ReadUint32(); for (var i = 0; i < deleted; i++) { var b = _state.RemoveLeaf(_reader.ReadHash256()); if (!b) { throw new AssertionError(); } } uint added = _reader.ReadUint32(); for (var i = 0; i < added; i++) { var b = _state.Add(_reader.ReadLedgerEntry()); if (!b) { throw new AssertionError(); } } }