-
Notifications
You must be signed in to change notification settings - Fork 0
/
doc.go
25 lines (19 loc) · 793 Bytes
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright (c) 2013-2014 The btcsuite developers
// Copyright (c) 2015-2017 The Decred developers
// Copyright (c) 2018-2020 The Hcd developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
/*
Package stake contains code for all of hcd's stake
transaction chain handling and other portions related to the
Proof-of-Stake (PoS) system.
At the heart of the PoS system are tickets, votes and revocations.
These 3 pieces work together to determine if previous blocks are
valid and their txs should be confirmed.
Important Parts included in stake package:
- Processing SSTx (tickets), SSGen (votes), SSRtx (revocations)
- TicketDB
- Stake Reward calculation
- Stake transaction identification (IsSStx, IsSSGen, IsSSRtx)
*/
package stake