Skip to content

RC Plugin Causing TestNet Hang #3589

@mvandeberg

Description

@mvandeberg

On the TestNet we do not start tracking RCs until block 100,000. On that block, objects in the RC Plugin are initialized, including rc accounts for every blockchain account.

This is a sizable load. With MIRA, if there was sufficient prior blockchain activity, this load can take 30-50 minutes. With minimal activity, this can still take 30 seconds.

To remove the hang, rc accounts should be created as accounts are created instead of on the start block. The challenge here is that we still don't want to track changes to max mana. Thankfully, max mana is calculated every regeneration. If we set an account's current mana to std::numeric_limits< int64_t >::max on creation, then the first time it is charged mana, it will regenerate mana and get set to the current mana.

This raises one small UI problem in that if an account has not transacted since the time which we are calculating RCs then it will show a current mana much higher than its actual value. This is also easily fixed by regenerating current mana when we return an RC account, which will likely be a welcome change regardless.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions