catena icon indicating copy to clipboard operation
catena copied to clipboard

Add a miner reward

Open pixelspark opened this issue 8 years ago • 4 comments

Some ideas: have a $miner variable that contains the public address of a miner, then use that to send extra quota (through grants) using a query stored in 'flags' executed as first query for each block.

pixelspark avatar Jul 09 '17 08:07 pixelspark

See also #43

pixelspark avatar Aug 10 '17 06:08 pixelspark

Blocks now have a miner public key hash, now there should just be a way to grant a certain query to a miner (kind=query, table=money, user=$miner, query=update money set balance = balance + 1 where user = $miner) (requires #8)

pixelspark avatar Aug 10 '17 12:08 pixelspark

#30 and #34 can be implemented using an 'incentives' table that lists special transactions that are executed upon each mined block (e.g. UPDATE balances SET amount = amount + 1 WHERE account = $invoker; or similar)

pixelspark avatar Nov 08 '17 07:11 pixelspark

Was searching issues about this: how catena prevents sybil spam attacks if there's no reward + usage of some limited resource from users? This project seems interesting and would like to use it, but without a way to prevent a DoS attack like this i think you could easily design an attack to eat up all disk... am i right?

Maybe set quota as the total held/burnt balance by a pubkey? No one wants another useless token, so making these tokens not worth to accumulate would be great too (maybe a countdown from mining to expiration, and require them to be burnt to acquire quota?)

chiguireitor avatar Oct 29 '18 06:10 chiguireitor