Skip to content

bug: accounts are removed bypassing the execution #1096

@bmuddha

Description

@bmuddha

In chainlink, when LRU cache overflows it evicts accounts, which results in unsubscription, followed by account removal from accountsdb. This has several problems:

  1. If someone is currently operating on that account, it will lead to a nasty data race and potential UB
  2. Replication stream is completely unaware of the fact that accountsdb state has been changed, due to the lack of transaction and will result in a state mismatch with replica nodes.

We need to add a separate instruction to handle account closures, and do the operation properly via transaction.

fn subscribe_account_removals(

Metadata

Metadata

Assignees

Labels

P1High prioritytechdebtIssues outlining shortcuts we took that need to be fixed when we have time

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions