Skip to content

How to handle [possible] negative VM refcounter  #3328

@AnnaShaleva

Description

@AnnaShaleva

Summary or problem description
Due to a possible bug in the node implementation, VM refcounter may become negative (e.g. like it happened in #3301 (comment)). We need to decide how to handle negative refcounter.

Quick suggestions were:

  1. FAULT the transaction immediately if refcounter becomes negative (implemented in [Neo VM Bug]Fix negative counter issue #3304).
  2. Stop the node immediately if refcounter becomes negative (implemented in [Neo VM Bug] Kill the process on negative reference counter #3324).
  3. Adjust the logic of references counting (implemented in [Neo VM Bug] Fix negative counter issue #3327).

We need to discuss and choose the best solution (or think about other possible solution) how to deal with negative refcounter.

Where in the software does this update applies to?

  • VM

Metadata

Metadata

Assignees

No one assigned

    Labels

    BacklogBacklog issues and PRsDiscussionInitial issue state - proposed but not yet accepted

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions