Patent ID: 11934425
Assignee: HARBOR TECHNOLOGIES, LLC
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 10:
11. A computer program product for synchronizing a state on a distributed chain database with a local state that is not on the distributed chain database, the computer program product being embodied in a tangible computer readable storage medium and comprising computer instructions for:
receiving a sync context, wherein:
the sync context includes one or more of the following: resync all, resync participant for an offering, resync offering, or resync participant, wherein the resync all relates to applying at least one ruleset for all participants across all offerings to generate an updated state, wherein the resync participant for the offering relates to applying at least one ruleset to a specific participant and a specific offering to generate an updated state, wherein the resync offering relates to applying at least one ruleset for all participants for a specific offering to generate an updated state, and wherein the resync participant relates to applying at least one ruleset for a specific participant across all offerings to generate an updated state;
the sync context provides a mechanism for calling different operational modes for retrieving a current state;
the current state is retrieved based at least in part on the sync context; and
a ruleset is applied to generate the updated state based at least in part on the sync context;

obtaining the current state from a local database, the current state corresponding to the chain state on the distributed chain database, the current state being selected from a copy of the chain state, an approximation of the chain state, and an estimate of the chain state, the chain state including a plurality of parameters specifying the authorized trades, wherein the plurality of parameters include one or more of the following: participant balances, address mappings, permissions for a participant, or token settings;
applying the ruleset to data extracted from the local database to generate the updated state, comprising:
selecting the ruleset based on a first sync context or a second sync context,

wherein the first sync context is different from the second sync context;
generating a plan to update a chain state on the distributed chain database based at least in part on the updated state and the current state, the operation auto detector further being configured to coalesce one or more operations for updating the chain state to provide a minimum set of operations for updating the chain state such that the plan consists of the minimum set of operations, wherein the updated chain state includes a change to one or more parameters of the current state, and wherein the generating of the plan to update the chain state comprises:
comparing the current state and the updated state to determine a difference between the current state and the updated state;
identifying parameters that do not match up between the current state and the updated state based on the comparison; and
determining the parameters to be changed in the current state and what actions or operations are to be taken to synchronize the chain state to the updated state to obtain the plan; and

executing the plan and generating an updated chain state that is used to authorize trades, the updated chain state being generated using the minimum set of operations.