I hereby claim:
- I am davecgh on github.
- I am davecgh (https://keybase.io/davecgh) on keybase.
- I have a public key ASBSTkEPsWT6fRYfeh8WTlJPI9PKZPklV8mH6nK9YIVjpwo
To claim this, I am signing this object:
| package main | |
| import ( | |
| "bytes" | |
| "encoding/hex" | |
| "fmt" | |
| "github.com/decred/dcrd/chaincfg" | |
| "github.com/decred/dcrd/dcrec/secp256k1" | |
| "github.com/decred/dcrd/dcrutil" |
I hereby claim:
To claim this, I am signing this object:
The first step is to read the Code Contribution Guidelines documentation to get a good understanding of policies used by the project.
Once that is done, the following commands illustrate a straight forward setup for submitting pull requests to the project:
| #!/bin/sh | |
| set -e | |
| SIMNET_NODES_ROOT=~/dcrdsimnetnodes | |
| MASTERNODE_ADDR=127.0.0.1:19555 | |
| NODE1_ADDR=127.0.0.1:19501 | |
| NODE2_ADDR=127.0.0.1:19502 | |
| NODE3_ADDR=127.0.0.1:19503 | |
| NODE4_ADDR=127.0.0.1:19504 |
| package main | |
| import ( | |
| "encoding/hex" | |
| "fmt" | |
| "os" | |
| "github.com/decred/dcrd/chaincfg/chainhash" | |
| "github.com/decred/dcrd/txscript/v4" | |
| "github.com/decred/dcrd/wire" |
The following table shows all of the valid combinations of votebits for the version 4 agendas on mainnet.
| --votebits | explorer OP_RETURN | lnsupport | sdiffalgo | Previous Block Valid? |
|---|---|---|---|---|
| 0 (0x00) | OP_RETURN 000004000000 |
ABSTAIN ❓ | ABSTAIN ❓ | NO ❌ |
| 1 (0x01) | OP_RETURN 010004000000 |
ABSTAIN ❓ | ABSTAIN ❓ | YES ✅ |
| 2 (0x02) | OP_RETURN 020004000000 |
ABSTAIN ❓ | NO ❌ | NO ❌ |
| rpcuser=youruser | |
| rpcpass=SomeDecentp4ssw0rd | |
| simnet=1 | |
| logdir=~/btcdsimnetnodes/master/log | |
| datadir=~/btcdsimnetnodes/master/data | |
| listen=127.0.0.1:18555 | |
| connect=127.0.0.1:18501 | |
| connect=127.0.0.1:18502 | |
| connect=127.0.0.1:18503 | |
| connect=127.0.0.1:18504 |
| // Copyright (c) 2016 The btcsuite developers | |
| // Copyright (c) 2015-2016 The Decred developers | |
| // Use of this source code is governed by an ISC | |
| // license that can be found in the LICENSE file. | |
| package main | |
| import ( | |
| "io/ioutil" | |
| "log" |
| package main | |
| import ( | |
| "encoding/hex" | |
| "fmt" | |
| "os" | |
| "path/filepath" | |
| "strings" | |
| "github.com/decred/dcrwallet/pgpwordlist" |