pokt-network / pocket

Official implementation of the Pocket Network Protocol v1
https://pokt.network
MIT License
61 stars 33 forks source link

[Utility][Consensus] PoS Rewards & Slashing Onboarding & Knowledge Transfer #949

Open Olshansk opened 11 months ago

Olshansk commented 11 months ago

Objective

This ☂️ ticket organizes links, references and details to onboard a Protocol Engineer to the protocol team. It acts as a central point of coordination to capture questions, discussions and results to enable a new core team member to own and drive the rewards & slashing mechanisms of the protocol.


1. Origin Document

One of the core principles of Crypto of Blockchains and crypto is incentive: rewards & slashing for useful or faulty/byzantine behaviour.

The protocol team uses the E2E Flows Template to detail and scope out work for Utility E2E Flows

2. Knowledge Transfer FAQ

Where is the utility module today?

Rewards & slashing are less than half backed. It has been an afterthought around all the other work going on and some effort needs to be put into understanding the lay of the land:

2.1 Examples of what's done / not done

Example 1: Is slashing for double signing implemented?

No

Example 2: Is slashing for double signing implemented?

No

Example 3: Do validators get rewards for the blocks they proposed?

Kind of? We don't have an E2E test for this and it's most likely half-baked. Needs to be verified, documented, and tested.

Example 4: Do valid transactions deduct fees? Do invalid transactions deduct fees if available?

Kind of? We have a discussion about it in protocol hour (audio and ULTRA rough whiteboard notes available here)

Example 5: Do Servicers get rewards for relays served?

Not yet.

Hopefully this gives an idea of how early it is.

2.2 Who is working on what?

Who is building the E2E relay flow?

@adshmh 🚄

Who is working on consensus? State Sync?

@red-0ne 🔥

Who is currently building p2p discovery, churn and gossip?

@bryanchriswhite 🌐

Who is currently building state important, export, rollback, validation and guaranteeing efficient data integrity?

@dylanlott 💾

Who is building & maintaining the infrastructure for all of this?

@okdas 🏗️

Who is currently thinking about IBC and related light client implementations?

@h5law 🌲

3. Goals

4. Deliverables

Starter Tasks

Larger Tasks

Stretch Goals

Cancelled but useful

Unscoped Tickets to be done after onboarding


Creator: @Olshansk Co-Owners: @0xRampey

Olshansk commented 11 months ago

@0xRampey I have made some other small updates to this ticket, so feel free to leave any questions/comments here as they come up!