lbryio / lbrycrd

The blockchain that provides the digital content namespace for the LBRY protocol
https://lbry.com
MIT License
2.58k stars 178 forks source link

Allow claims outside the claimtrie #398

Open BrannonKing opened 3 years ago

BrannonKing commented 3 years ago

The computation of the claim trie is the bottleneck on sync, and it will soon be the overall bottleneck on each new block. Many LBRY streams presently use this mechanism but have no need for claim competition, as they are grouped by channel.

We need to enable a mechanism to allow these streams-in-a-channel to migrate to a non-competitive registration. The proposed method is that we will modify the trie to ignore claims for the root node (aka, claims with an empty name will no longer compete). We will no longer allow someone to competitively claim the root node; there's no way to view it presently anyhow.

Subtasks

lyoshenka commented 3 years ago

Which places in the code currently assume that a claim has a name? Will any of those be hard to change?