Message Creation and Leader Election
Message Creation
Leader Election
// Function to attempt leader election for a message job
bool attemptOwnership(Job job) {
bool lockAcquired = job_lock.tryAcquire(job.id);
if (lockAcquired) {
log("Node " + nodeId + " has become the leader for job " + job.id);
becomeLeader(job);
}
return lockAcquired;
}Topic Creation by Leader
Diagram: Leader Election Flow
PreviousOverview of Technical Details for Cross-Chain Bridging FlowNextLeader Ownership and Verification Channel Creation
Last updated