Skip to main content

Module amplification

Module amplification 

Source
Expand description

§Post PoW amplification rules

A single function — get_minimum_post_pow — that decides how many bits of proof-of-work a post requires before a server will accept it. The base level comes from crate::tools::config::POW_MINIMUM_PER_POST, on top of which the amplification is:

  • Size: log-scale above 1024 bytes. Longer posts cost more — fair for storage, punishes spam-generated wall-of-text content.
  • Fan-out: posts that link a large number of base_ids (hashtags, mentions, replies) scale quadratically. Main lever against hashtag spam farms that link hundreds of trending tags from one post.
  • Bucket granularity: submissions into tighter (shorter-duration) buckets need more PoW than broader ones. Hot, fine-grained buckets are the most valuable attack surface, so they get the most expensive admission control.

Functions§

get_minimum_post_pow