Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

chaincfg: simnet config to use testnet values. coinType changed to 1 #12

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions chaincfg/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ var testNet4GenesisBlock = wire.MsgBlock{
// simNetGenesisHash is the hash of the first block in the block chain for the
// simulation test network.
var simNetGenesisHash = chainhash.Hash([chainhash.HashSize]byte{ // Make go vet happy.
0xf6, 0x7a, 0xd7, 0x69, 0x5d, 0x9b, 0x66, 0x2a,
0x72, 0xff, 0x3d, 0x8e, 0xdb, 0xbb, 0x2d, 0xe0,
0xbf, 0xa6, 0x7b, 0x13, 0x97, 0x4b, 0xb9, 0x91,
0x0d, 0x11, 0x6d, 0x5c, 0xbd, 0x86, 0x3e, 0x68,
0xbe, 0xa4, 0x3b, 0x3a, 0xb4, 0xbc, 0x9d, 0x86,
0x2b, 0xfa, 0xbc, 0x0d, 0x45, 0xa3, 0xc5, 0xc9,
0xd0, 0x9f, 0x66, 0x20, 0xce, 0x7d, 0xb6, 0x78,
0xb5, 0xdc, 0x1d, 0xb8, 0x19, 0xc9, 0x35, 0x12,
})

// simNetGenesisMerkleRoot is the hash of the first transaction in the genesis
Expand Down
11 changes: 6 additions & 5 deletions chaincfg/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -504,12 +504,13 @@ var SimNetParams = Params{
BIP0065Height: 0, // Always active on simnet
BIP0066Height: 0, // Always active on simnet
CoinbaseMaturity: 100,
SubsidyReductionInterval: 210000,
TargetTimespan: time.Hour * 24 * 14, // 14 days
TargetTimePerBlock: time.Minute * 10, // 10 minutes
SubsidyReductionInterval: 840000,
// allow block every second to keep difficulty at its minimum
TargetTimespan: (time.Hour * 24 * 3) + (time.Hour * 12), // 3.5 days
TargetTimePerBlock: (time.Minute * 0) + (time.Second * 1), // every second
RetargetAdjustmentFactor: 4, // 25% less, 400% more
ReduceMinDifficulty: true,
MinDiffReductionTime: time.Minute * 20, // TargetTimePerBlock * 2
MinDiffReductionTime: time.Minute * 5, // TargetTimePerBlock * 2
GenerateSupported: true,

// Checkpoints ordered from oldest to newest.
Expand Down Expand Up @@ -559,7 +560,7 @@ var SimNetParams = Params{

// BIP44 coin type used in the hierarchical deterministic path for
// address generation.
HDCoinType: 115, // ASCII for s
HDCoinType: 1,
}

var (
Expand Down