mjp0 / datagram-node

📡 Datagram is an open-source data platform that you can use to build secured & shareable p2p databases with anyone.

Home Page:https://datagramjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add the ability to remove added Cores

mjp0 opened this issue · comments

commented

User should be able to remove any Core added. When Core is removed, it should be also remembered and blocked in the future.

Replication already has the ability to select what Cores the user wants to share and receive. Combined with persisted block list in the meta core we can easily remove blocked cores from both want and share lists on the fly.


Deliverables

  • user can use remove_core(core_key) to remove a core
  • core is removed from meta core
  • core is automatically removed from want list in replication
  • core is automatically removed from sharing list in replication
  • core is remembered as blocked