1
.gitignore
vendored
1
.gitignore
vendored
@ -23,3 +23,4 @@ log-*.txt
|
|||||||
# intellij files
|
# intellij files
|
||||||
/.idea/
|
/.idea/
|
||||||
/solana.iml
|
/solana.iml
|
||||||
|
/.vscode/
|
||||||
|
@ -22,7 +22,7 @@ gossip endpoint (a socket address).
|
|||||||
|
|
||||||
Records shared over gossip are arbitrary, but signed and versioned (with a
|
Records shared over gossip are arbitrary, but signed and versioned (with a
|
||||||
timestamp) as needed to make sense to the node receiving them. If a node
|
timestamp) as needed to make sense to the node receiving them. If a node
|
||||||
recieves two records from the same source, it it updates its own copy with the
|
receives two records from the same source, it updates its own copy with the
|
||||||
record with the most recent timestamp.
|
record with the most recent timestamp.
|
||||||
|
|
||||||
## Gossip Service Interface
|
## Gossip Service Interface
|
||||||
|
@ -11,7 +11,7 @@ of getting its stake slashed. The economics are covered in [staking
|
|||||||
rewards](staking-rewards.md). This chapter, on the other hand, describes the
|
rewards](staking-rewards.md). This chapter, on the other hand, describes the
|
||||||
underlying mechanics of its implementation.
|
underlying mechanics of its implementation.
|
||||||
|
|
||||||
## Basic Besign
|
## Basic Design
|
||||||
|
|
||||||
The general idea is that the validator owns a Vote account. The Vote account
|
The general idea is that the validator owns a Vote account. The Vote account
|
||||||
tracks validator votes, counts validator generated credits, and provides any
|
tracks validator votes, counts validator generated credits, and provides any
|
||||||
@ -114,7 +114,13 @@ tokens stored as `Account::lamports`.
|
|||||||
The stakes and the MiningPool are accounts that are owned by the same `Stake`
|
The stakes and the MiningPool are accounts that are owned by the same `Stake`
|
||||||
program.
|
program.
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
### StakeInstruction::Initialize
|
### StakeInstruction::Initialize
|
||||||
|
=======
|
||||||
|
The Stake account is moved from Uninitialized to StakeState::Stake form. This is
|
||||||
|
how stakers choose their initial delegate validator node and activate their
|
||||||
|
stake account lamports.
|
||||||
|
>>>>>>> 25080f1a3... fix book typos (#5185)
|
||||||
|
|
||||||
* `account[0]` - RW - The StakeState::Delegate instance.
|
* `account[0]` - RW - The StakeState::Delegate instance.
|
||||||
`StakeState::Delegate::credits_observed` is initialized to `VoteState::credits`.
|
`StakeState::Delegate::credits_observed` is initialized to `VoteState::credits`.
|
||||||
|
Reference in New Issue
Block a user