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

Claim 0:
1. A system for capturing changes in information that impact trade authorization and for updating a chain state on a distributed chain database that is used to authorize trades, the system comprising:
a processor configured to provide:
a database state loader configured to:
receive 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 rules engine is configured to receive the sync context and to apply a ruleset to generate the updated state based at least in part on the sync context;

a trade controller configured to obtain 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;
the rules engine configured to be invoked by the trade controller to apply the ruleset to data extracted from the local database to generate the updated state, comprising to:
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;
an operation auto detector configured to generate a plan to update the 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 to:
compare the current state and the updated state to determine a difference between the current state and the updated state;
identify parameters that do not match up between the current state and the updated state based on the comparison; and
determine 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

an execution engine configured to execute the plan and to generate an updated chain state that is used to authorize trades, the updated chain state being generated using the minimum set of operations in the plan; and

a memory coupled to the processor and configured to provide the processor with instructions.