Skip to content

Sai/sync among fullnodes#443

Draft
KryptSai wants to merge 27 commits intodevelopmentfrom
sai/sync-among-fullnodes
Draft

Sai/sync among fullnodes#443
KryptSai wants to merge 27 commits intodevelopmentfrom
sai/sync-among-fullnodes

Conversation

@KryptSai
Copy link
Copy Markdown
Contributor

This PR enables full nodes to sync among each other.

vaishnav-ch and others added 27 commits November 12, 2025 12:31
Manage token addition psql issues
…ction; adding a logic at APISyncTokenChain handler function such that we can use the same API to sync it from a fullnode as well;
… syncing among the fullnode; fixed the bug where, if there is a either a missing block or extra block after recomputing the merkle tree it should compare the same index but it was going to next index so corrected here ; added defer statements to close the peer connections while connecting with fullnodes; if token already exists removed returning with an error;

avoild reading the fullnodeblockHashTable twice; In syncTokenBlockFromFullNode handler function sending blockpublisherDID as the previous block's ownerDID; adding a function to build a merkle tree from given hashes;
…unction in case of genesisblock is nil ; handling smart_contract_hash column instead of token_id in installTriggers function;
@KryptSai KryptSai self-assigned this Jan 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants