* Delay fee broadcast and adding tickets to wallets. - Adds a `background` package which implements a dcrd notification handler. On each blockconnected notification, tickets with 6+ confirmations are marked confirmed, relevant fee transactions are broadcast, and any fees with 6+ confirmations have their tickets added to voting wallets. - VSP fee is now an absolute value measured in DCR rather than a percentage. This simplifies the code and is more appropriate for an MVP. We can re-add percentage based fees later. - Database code for tickets is now simplified to just "Insert/Update", rather than having functions for updating particular fields. - Pay fee response no longer includes the fee tx hash, because we dont necessarily broadcast the fee tx straight away. * Const for required confs
22 lines
801 B
Modula-2
22 lines
801 B
Modula-2
module github.com/jholdstock/dcrvsp
|
|
|
|
go 1.13
|
|
|
|
require (
|
|
decred.org/dcrwallet v1.2.3-0.20200519180100-f1aa4c354e05
|
|
github.com/decred/dcrd/blockchain/stake/v3 v3.0.0-20200522182228-0c7cbb53680b
|
|
github.com/decred/dcrd/chaincfg/v3 v3.0.0-20200522182228-0c7cbb53680b
|
|
github.com/decred/dcrd/dcrec v1.0.0
|
|
github.com/decred/dcrd/dcrutil/v3 v3.0.0-20200522182228-0c7cbb53680b
|
|
github.com/decred/dcrd/hdkeychain/v3 v3.0.0-20200522182228-0c7cbb53680b
|
|
github.com/decred/dcrd/rpc/jsonrpc/types/v2 v2.0.0
|
|
github.com/decred/dcrd/txscript/v3 v3.0.0-20200522182228-0c7cbb53680b
|
|
github.com/decred/dcrd/wire v1.3.0
|
|
github.com/decred/slog v1.0.0
|
|
github.com/gin-gonic/gin v1.6.3
|
|
github.com/jessevdk/go-flags v1.4.0
|
|
github.com/jrick/logrotate v1.0.0
|
|
github.com/jrick/wsrpc/v2 v2.3.3
|
|
go.etcd.io/bbolt v1.3.4
|
|
)
|