Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #17

Closed
wants to merge 368 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
368 commits
Select commit Hold shift + click to select a range
b1b830a
fix lint
IntegralTeam Dec 26, 2019
374ff00
CalcNextTeam
IntegralTeam Dec 26, 2019
fb271d5
fix lint
IntegralTeam Dec 26, 2019
7bd9e4b
fix
IntegralTeam Dec 26, 2019
208b6b1
test
IntegralTeam Dec 26, 2019
51cf1c6
add anchoringTeamSize and anchorSubsidy
IntegralTeam Dec 26, 2019
ec279f2
ci fixes (?)
IntegralTeam Dec 26, 2019
2b1587f
unittests: -spv_testnet fix
IntegralTeam Dec 26, 2019
f19066b
cleanup dead/commented code
IntegralTeam Dec 27, 2019
817f792
fix lint
IntegralTeam Dec 27, 2019
03a6854
fix lint
IntegralTeam Dec 27, 2019
0fec669
anchors: active chain selection tests and experiments. WIP
IntegralTeam Jan 9, 2020
c6b70ff
finalization tx [WIP]
IntegralTeam Jan 8, 2020
23ffdf4
save/load criminal masternodes and current team to/from DB
IntegralTeam Jan 8, 2020
787d273
fixes
IntegralTeam Jan 10, 2020
5856627
add IsCriminalDetention func & refactor custom tx
IntegralTeam Jan 13, 2020
39a0ef6
disable check stake modifier
IntegralTeam Jan 15, 2020
a238762
disable blocks minting while reindex
IntegralTeam Jan 15, 2020
262500b
fix
IntegralTeam Jan 15, 2020
0090617
fix logging staker level
IntegralTeam Jan 15, 2020
feff147
anchors: active chain selection and tests
IntegralTeam Jan 17, 2020
5e9ce31
Merge branch 'finalization_tx' into 'feature_spv_anchors_test'
IntegralTeam Jan 17, 2020
b3a89d0
fixed CheckBlockIndex()
IntegralTeam Jan 20, 2020
a510af9
fix criminal transaction
IntegralTeam Jan 21, 2020
501556b
spv: massive rpc improvements and some tests
IntegralTeam Jan 22, 2020
0c28354
fix criminal transaction revert
IntegralTeam Jan 22, 2020
cd9f27e
'best anchor' activation logic: tests and fixes
IntegralTeam Jan 22, 2020
c756d13
promise/future for proper async anchor tx sending
IntegralTeam Jan 23, 2020
644bde2
Merge branch 'finalization_tx' into feature_anchors_merged
IntegralTeam Jan 23, 2020
2e9d1ec
Merge branch 'feature_spv_anchors_test' into feature_anchors_merged
IntegralTeam Jan 23, 2020
0194ee9
merge fixes
IntegralTeam Jan 23, 2020
52e91e6
lint fixes
IntegralTeam Jan 23, 2020
a74f835
adjustable feerate for spv rpc
IntegralTeam Jan 26, 2020
fac2010
rename masternodes' rpcs
IntegralTeam Jan 26, 2020
07f7977
masternode's states
IntegralTeam Jan 27, 2020
1d8bc4f
rpc getmintinginfo
IntegralTeam Jan 28, 2020
f1efee9
modified masternode's states and ban logic
IntegralTeam Jan 29, 2020
95aed0b
masternodes short manual
IntegralTeam Jan 29, 2020
e6e5c20
mark criminal masternode when it's blocking
IntegralTeam Jan 24, 2020
4e7f682
change anchor subsidy
IntegralTeam Jan 24, 2020
9089cb9
change to write to cache
IntegralTeam Jan 28, 2020
640bcb4
fix criminal transaction revert
IntegralTeam Jan 29, 2020
ad1ba12
fix criminal tx
IntegralTeam Jan 30, 2020
3ad4253
fix pointer to ref
IntegralTeam Jan 30, 2020
5908452
add assert
IntegralTeam Jan 30, 2020
552df30
renaming in src/
IntegralTeam Jan 30, 2020
6e675ea
renaming in ./
IntegralTeam Jan 30, 2020
03281ea
files renaming in src/
IntegralTeam Jan 30, 2020
e8ec2fc
rename in build-aux
IntegralTeam Jan 30, 2020
e63d14d
fix renaming in Makefile.am
IntegralTeam Jan 30, 2020
dcf78b2
partial renaming in man/
IntegralTeam Jan 30, 2020
85f6a5d
renaming, WIP
IntegralTeam Jan 30, 2020
8753a7d
renaming fixes
IntegralTeam Jan 31, 2020
c4b2194
renaming in python tests, lint
IntegralTeam Feb 3, 2020
1c45c1a
rpc resignmasternode fix
IntegralTeam Feb 3, 2020
08d63a5
reanming in ci/
IntegralTeam Feb 3, 2020
371da16
revert failed renaming of 'subtrees'
IntegralTeam Feb 4, 2020
a474c39
reverting https/git links
IntegralTeam Feb 4, 2020
84fca11
renaming in .gitignore
IntegralTeam Feb 4, 2020
7181f36
try to rename in build_msvc/
IntegralTeam Feb 4, 2020
9339f3c
try to rename scripts in contrib/
IntegralTeam Feb 4, 2020
673a2a7
rename files in doc/ and share/
IntegralTeam Feb 4, 2020
1fae9a1
strict anchor auths; minor changes
IntegralTeam Feb 7, 2020
22add41
turn off default spv start
IntegralTeam Feb 7, 2020
50848be
rpc listanchorauths, test and fixes
IntegralTeam Feb 10, 2020
15e270d
rename CAnchorConfirms to CAnchorAwaitingConfirms
IntegralTeam Feb 2, 2020
8d7ff33
fix criminal minter
IntegralTeam Feb 6, 2020
7018e74
uint64_t to uint32_t
IntegralTeam Feb 6, 2020
8eaa15e
refactor anchor conformations [wip]
IntegralTeam Feb 6, 2020
2f4b8b8
create and connect finalization tx [wip]
IntegralTeam Feb 10, 2020
f328545
Revert "uint64_t to uint32_t"
IntegralTeam Feb 10, 2020
85ceae5
disconnect finalization tx
IntegralTeam Feb 10, 2020
5531240
fix lint
IntegralTeam Feb 10, 2020
434afb5
fix whitespace
IntegralTeam Feb 10, 2020
8e86af9
spv callbacks lock on shutdown
IntegralTeam Feb 12, 2020
32e18cc
more init fixes
IntegralTeam Feb 12, 2020
ba1384d
fix whitespace
IntegralTeam Feb 12, 2020
0958295
deadlocks fix
IntegralTeam Feb 13, 2020
7829321
spv rpc fix
IntegralTeam Feb 13, 2020
04996bb
batched write of headers
IntegralTeam Feb 13, 2020
192b8e4
rpc: minter info in jsons
IntegralTeam Feb 13, 2020
fd3c41b
Revert "batched write of headers"
IntegralTeam Feb 14, 2020
ad8b53c
disable criminal punishments
IntegralTeam Feb 14, 2020
e818968
fix CalcNextTeam
IntegralTeam Feb 18, 2020
49296b8
spv deadlocks fixes
IntegralTeam Feb 18, 2020
f2302bf
fix unittest setup
IntegralTeam Feb 19, 2020
64feb4e
fix finalization tx
IntegralTeam Feb 14, 2020
39978dc
fix finalization tx disconnect
IntegralTeam Feb 18, 2020
c29fdc2
change anchor rewards
IntegralTeam Feb 18, 2020
4e8ee96
one more fix for spv deadlocking
IntegralTeam Feb 20, 2020
da802c9
add debug logs and rpc debug command for anchors confims
IntegralTeam Feb 19, 2020
60703c8
improved auth logic
IntegralTeam Feb 13, 2020
f75053e
request auth after IBD
IntegralTeam Feb 21, 2020
23bcc6c
fix possible spv data race
IntegralTeam Feb 21, 2020
6befc82
Merge branch 'improved_auths_logic' into epic-anchor
IntegralTeam Feb 21, 2020
1bb6bb8
lint fix
IntegralTeam Feb 21, 2020
86dfe97
global refactor finalizations tx
IntegralTeam Feb 21, 2020
8c2d7d4
add spv_listanchorrewards rpc call
IntegralTeam Feb 21, 2020
89f17fd
fix
IntegralTeam Feb 25, 2020
48229f7
fix
IntegralTeam Feb 25, 2020
63d7e31
Merge branch 'finalization_tx' into epic-anchor
IntegralTeam Feb 25, 2020
f09baa1
auths request fix
IntegralTeam Feb 25, 2020
f4800ae
tie anchors db reset with spv db resync
IntegralTeam Feb 26, 2020
174ea55
fix index in listanchors
IntegralTeam Feb 26, 2020
dfdf0f8
one more try to fix spv deadlocks
IntegralTeam Feb 26, 2020
eb0a7eb
upper limit for getauths
IntegralTeam Feb 26, 2020
e0c669c
btc separate serialization
IntegralTeam Feb 25, 2020
221eb5b
rpc createanchortemplate
IntegralTeam Feb 25, 2020
e54802c
spv reconnect fix; active anchors fix on rescan
IntegralTeam Feb 28, 2020
f134600
Merge branch 'spv_rescan_fixes' into epic-anchor
IntegralTeam Feb 28, 2020
0bedeb0
anchor auths pruning + test
IntegralTeam Feb 28, 2020
2f83b82
Merge branch 'auths_pruning' into epic-anchor
IntegralTeam Feb 28, 2020
8d4e152
moved 'wallet_backup' test to 'extended' group due to heavy load on t…
IntegralTeam Feb 28, 2020
2c09466
lint
IntegralTeam Feb 28, 2020
747e1ff
Merge branch 'auto_anchor_preparations' into epic-anchor
IntegralTeam Mar 2, 2020
2bab19a
standart value (instead of CAmount) for anchor templates' rpc
IntegralTeam Mar 2, 2020
1de0983
one more spv deadlock fix
IntegralTeam Mar 3, 2020
8d6b990
new anchor address for testnet; fAllowMinDifficultyBlocks = false!
IntegralTeam Mar 4, 2020
3a138ea
new genesis for testnet!
IntegralTeam Mar 4, 2020
ddfd7e8
spv logs fixes
IntegralTeam Mar 5, 2020
43466da
spv mass fixes: threads, peers and reconnect logic
IntegralTeam Mar 4, 2020
ad42ab6
Merge branch 'spv_threads' into epic-anchor
IntegralTeam Mar 6, 2020
3b8bb0b
fix
IntegralTeam Feb 26, 2020
fda548a
reconstruct finalization tx
IntegralTeam Mar 10, 2020
b92a102
2 non-critical tests moved to 'extended'
IntegralTeam Mar 12, 2020
7edde01
reward fixes, WIP
IntegralTeam Mar 12, 2020
d18e80e
optimize unrewarded set
IntegralTeam Mar 13, 2020
b2c5aca
restored rewards rpc + dead code cleaning
IntegralTeam Mar 13, 2020
53d46f2
anchor rewards tests and fixes
IntegralTeam Mar 16, 2020
101a20c
reward test: sync instead sleep
IntegralTeam Mar 16, 2020
1a08105
Merge branch 'rewards_fixes' into epic-anchor
IntegralTeam Mar 16, 2020
ade6e41
try to fix trevis p2p speed problems
IntegralTeam Mar 16, 2020
1ee550b
fixed test sync for travis
IntegralTeam Mar 17, 2020
679e503
fixes in anchor's confirms relay after node restart
IntegralTeam Mar 19, 2020
d1f2367
lint
IntegralTeam Mar 19, 2020
7439415
fix in rpc_blockchain.py
IntegralTeam Mar 23, 2020
097155b
fix lint
IntegralTeam Mar 23, 2020
04756ad
criminal fixes, tests
IntegralTeam Mar 17, 2020
e074343
lint
IntegralTeam Mar 24, 2020
c962b97
Merge pull request #16 from cakedefi/epic-anchor
uzyn Mar 24, 2020
e8528e1
one more testcase for criminals
IntegralTeam Mar 24, 2020
8c5a1dc
sync fix in anchor reward test
IntegralTeam Mar 24, 2020
1ba93a0
'-anchorsbinding' feature
IntegralTeam Mar 25, 2020
9374a45
Add build, deployment tools
prasannavl Mar 24, 2020
6a5ba22
Merge pull request #21 from cakedefi/pvl/deploy-utils
prasannavl Mar 26, 2020
c52917c
spv_listanchors pagination and minor rpc refactoring
IntegralTeam Mar 25, 2020
5a380de
Consistent naming
prasannavl Mar 25, 2020
ea12180
Merge pull request #22 from cakedefi/pvl/consistent_naming
prasannavl Mar 26, 2020
7976490
Fix missing pkg prefix
prasannavl Mar 25, 2020
cc93f76
Merge pull request #23 from cakedefi/pvl/pkg_prefix_fix
prasannavl Mar 26, 2020
a25546f
Merge branch 'anchors_binding' into criminals_fixes_merged
IntegralTeam Mar 26, 2020
42e9c81
Merge branch 'rpc_pagination' into criminals_fixes_merged
IntegralTeam Mar 26, 2020
5012b1c
default anchors binding set to 'true'
IntegralTeam Mar 27, 2020
e50a5a7
Update README.md
prasannavl Mar 29, 2020
b516b57
Add GitHub workflows
prasannavl Mar 29, 2020
fb694a0
Masternode criminal fixes
prasannavl Mar 29, 2020
d7e2844
Masternode criminal system refactoring
prasannavl Mar 29, 2020
9f68e82
Merge pull request #25 from cakedefi/pvl/milestone-2020-q1-rel
prasannavl Mar 29, 2020
ed385cb
Minor naming consistency
prasannavl Mar 29, 2020
5e3b8d0
Versioning updates: 1.0-alpha1
prasannavl Mar 29, 2020
748ce3c
Fix support email
prasannavl Mar 30, 2020
a0d4cc0
Minor fixes
prasannavl Mar 30, 2020
f0428a1
Change prefix defi-blockchain
prasannavl Mar 30, 2020
d74c566
Change packaging: versioned base directory
prasannavl Mar 30, 2020
d4afc1e
Update docs
prasannavl Mar 30, 2020
9334323
Merge pull request #26 from cakedefi/pvl/rollup-1
prasannavl Mar 30, 2020
e0931f2
Revert config prefix changes
prasannavl Mar 30, 2020
d0e6775
Merge pull request #27 from cakedefi/pvl/revert-name-change
prasannavl Mar 30, 2020
5eeb351
Add gitHub artifacts and cleanup
prasannavl Mar 30, 2020
053af35
Fix dev artifact builds
prasannavl Mar 30, 2020
241221d
Fix and streamline github releases
prasannavl Apr 2, 2020
6b6d7f4
Revamp build process
prasannavl Apr 2, 2020
f778737
Disable few non essential lints temporarily
prasannavl Apr 2, 2020
8dae3f1
Disable feature_anchor_rewards test
prasannavl Apr 2, 2020
9b2572a
Fix docker-dev-build
prasannavl Apr 3, 2020
7b20bdf
change minting/block reward in favor of masternode's owner
IntegralTeam Apr 15, 2020
b1e4e75
Merge pull request #33 from cakedefi/mint4owner
uzyn Apr 16, 2020
96c8183
fixes in pos checkings of headers and blocks
IntegralTeam Apr 17, 2020
2b5bf12
Merge pull request #34 from cakedefi/mint4owner
prasannavl Apr 17, 2020
0409a63
Align release tree with bitcoin
prasannavl Apr 21, 2020
b272924
Cleanup CI processes
prasannavl Apr 21, 2020
305ad7b
Default port changes
prasannavl Apr 21, 2020
46dcd15
Separate release build workflow
prasannavl Apr 21, 2020
c74a01e
Versioned artifacts and auto releases
prasannavl Apr 21, 2020
10bac88
Fix default ports
prasannavl Apr 22, 2020
6c2cd27
Remove all seed nodes
prasannavl Apr 22, 2020
1891c60
Enable extended testing on CI
prasannavl Apr 23, 2020
8be559e
Fix addrman tests
prasannavl Apr 24, 2020
50fe806
chainparams changed
IntegralTeam Apr 27, 2020
6a89f4f
premine in genesis; test fixes
IntegralTeam Apr 28, 2020
cbe4b6a
premine test; other test fixes
IntegralTeam Apr 28, 2020
bcecb0c
new genesises; dependent tests fixes
IntegralTeam Apr 29, 2020
bd5e9f7
linter fixes
IntegralTeam Apr 29, 2020
0c90018
new anchoring addresses and key time
IntegralTeam Apr 30, 2020
0d8020a
new genesis+anchor keys for testnet
IntegralTeam Apr 30, 2020
a458c79
Rename premined => initdist
uzyn May 1, 2020
4e7dfb0
Initdist tests renaming
uzyn May 1, 2020
02bc0a6
Merge pull request #37 from cakedefi/deploy
prasannavl May 1, 2020
bd960e6
Add dns seeds
prasannavl May 4, 2020
b3c09d3
Refresh testnet params
prasannavl May 5, 2020
0159c02
Change genesis timestamp message
prasannavl May 6, 2020
fdadcfa
Add support files to package, minor build tweaks
prasannavl May 7, 2020
9c261ec
Update copyright info and version
prasannavl May 7, 2020
5ff9280
Update travis tests
prasannavl May 7, 2020
e8dca27
Better packaging conventions for support files
prasannavl May 8, 2020
4e29e8f
Remove dev builds on release tags
prasannavl May 8, 2020
8ab3df8
Stricter bash conventions, remove docker-dev build stages
prasannavl May 18, 2020
69167a4
Update tag link in README.md
suriyaa May 14, 2020
3aa7c04
Add fixed seeds
prasannavl May 21, 2020
f86c2f0
Enable x86_64-apple-darwin11 build
prasannavl May 29, 2020
14febbd
Enable dockerhub builds
prasannavl Jun 2, 2020
4f78f56
Update seeds
prasannavl Jun 2, 2020
a2930a8
Update docs
prasannavl Jun 3, 2020
e469f7b
Removed warning by setting client release flag
monstrobishi Jun 25, 2020
86b72e2
Merge pull request #43 from cakedefi/bugfix/removewarning
prasannavl Jun 25, 2020
c18694b
Added new masternode tutorial
monstrobishi Jun 29, 2020
f11f306
Add fixed seeds
prasannavl May 21, 2020
65f36c1
build refactoring
IntegralTeam May 25, 2020
4cdf589
spv: port from 'clean C' to 'C++'
IntegralTeam May 27, 2020
199197d
spv: exclude assertion's thread from build due to needlessness
IntegralTeam May 27, 2020
52605f2
spv: migrate from clean posix threads/mutexes to boost
IntegralTeam May 27, 2020
711b6f6
spv: adopt winsockets and other, remove unused files
IntegralTeam May 28, 2020
3f5df19
Add x86_64-apple-darwin11 buildset
prasannavl May 29, 2020
06f6f2f
Enable x86_64-apple-darwin11 build
prasannavl May 29, 2020
9150815
spv: type casting & arithmetic
IntegralTeam Jun 23, 2020
cd3c491
spv: le/be macros refactoring
IntegralTeam Jun 23, 2020
16b132b
spv: fix mutexes construction errors
IntegralTeam Jun 23, 2020
2e4064f
spv: cleanup old 'pthread*' code
IntegralTeam Jun 23, 2020
5d2d523
revert changes for win build script (after mac branch merging)
IntegralTeam Jun 23, 2020
469f691
spv: fix connection problems in win; fix logging thread safety
IntegralTeam Jun 25, 2020
a8ab7a6
Fix travis
prasannavl Jun 25, 2020
4568f97
try to fix secp256k1 arithmetic
IntegralTeam Jun 26, 2020
93f1453
turn off lint subtree checks (we have no any subtrees)
IntegralTeam Jun 26, 2020
faf95e4
once again, turn off lint subtree checks (we have no any subtrees)
IntegralTeam Jun 26, 2020
dc97a8c
try to fix secp256k1 arithmetic
IntegralTeam Jun 26, 2020
51ac13e
spv type fixes for sanitizer
IntegralTeam Jun 26, 2020
a7c36bc
Refine multi platform builds
prasannavl Jun 29, 2020
1a1a602
Dockerhub updates for v1.0.0-rc1
prasannavl Jun 29, 2020
8eab7f0
Merge pull request #49 from cakedefi/pvl/develop
prasannavl Jun 29, 2020
5232b41
Merge branch 'pvl/docker-update' into develop
prasannavl Jun 29, 2020
558a606
Build CI changes for multiplatform release
prasannavl Jun 30, 2020
803ca2c
v1.0.0-rc1
prasannavl Jun 30, 2020
96cb111
Update docker docs
prasannavl Jul 1, 2020
1de038e
Updated with latest binaries
monstrobishi Jul 3, 2020
ff1527c
spv: crypto fix
IntegralTeam Jul 14, 2020
aaef522
Merge pull request #58 from cakedefi/spv_crypto_fix
monstrobishi Jul 16, 2020
f9311ae
Merge branch 'develop' of github.com:cakedefi/defichain into develop
Jul 17, 2020
4483a8b
Added fallback fee
Jul 17, 2020
73343b2
[Params] Fill nMinChainwork,assumevalid on mainnet.
akshaynexus Jul 18, 2020
f5c000d
Merge pull request #16 from akshaynexus/develop
monstrobishi Jul 23, 2020
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ For more information:
- Visit the [DeFi Blockchain website](https://defichain.io)
- Read our [white paper](https://defichain.io/white-paper/)

Official binaries are available from the [GitHub Releases](https://github.com/DeFiCh/ain/releases) page.
Downloadable binaries are available from the [GitHub Releases](https://github.com/DeFiCh/ain/releases) page.

### Bitcoin Core

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@ USER defi:defi
CMD [ "/app/bin/defid" ]

EXPOSE 8555 8554 18555 18554 19555 19554

52 changes: 14 additions & 38 deletions src/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ class CMainParams : public CChainParams {
consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nTimeout = 1230767999; // December 31, 2008

// The best chain should have at least this much work.
consensus.nMinimumChainWork = uint256S("0x00");
consensus.nMinimumChainWork = uint256S("0x000000000000000000000000000000000000000000003f2949bfe4efc275390c");

// By default assume that the signatures in ancestors of this block are valid.
consensus.defaultAssumeValid = uint256S("0x00"); //("0x0000000000000000000f1c54590ee18d15ec70e68c8cd4cfbadb1b4f11697eee"); //563378
consensus.defaultAssumeValid = uint256S("0x9b257cb88630e422902ef2b17a3627ae2f786a5923df9c3bda4226f9551b1ea8");

// Masternodes' params
consensus.mn.activationDelay = 10;
Expand Down Expand Up @@ -172,9 +172,9 @@ class CMainParams : public CChainParams {
m_assumed_blockchain_size = 240;
m_assumed_chain_state_size = 3;

base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,18); // '8' (0('1') for bitcoin)
base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,90); // 'd' (5('3') for bitcoin)
base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1,128); // (128 ('5', 'K' or 'L') for bitcoin)
base58Prefixes[PUBKEY_ADDRESS] = {0x12}; // '8' (0('1') for bitcoin)
base58Prefixes[SCRIPT_ADDRESS] = {0x5a}; // 'd' (5('3') for bitcoin)
base58Prefixes[SECRET_KEY] = {0x80}; // (128 ('5', 'K' or 'L') for bitcoin)
base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x88, 0xB2, 0x1E};
base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x88, 0xAD, 0xE4};

Expand Down Expand Up @@ -218,14 +218,6 @@ class CMainParams : public CChainParams {
// service bits we want, but we should get them updated to support all service bits wanted by any
// release ASAP to avoid it where possible.
vSeeds.emplace_back("seed.defichain.io");
// vSeeds.emplace_back("seed.bitcoin.sipa.be"); // Pieter Wuille, only supports x1, x5, x9, and xd
// vSeeds.emplace_back("dnsseed.bluematt.me"); // Matt Corallo, only supports x9
// vSeeds.emplace_back("dnsseed.bitcoin.dashjr.org"); // Luke Dashjr
// vSeeds.emplace_back("seed.bitcoinstats.com"); // Christian Decker, supports x1 - xf
// vSeeds.emplace_back("seed.bitcoin.jonasschnelli.ch"); // Jonas Schnelli, only supports x1, x5, x9, and xd
// vSeeds.emplace_back("seed.btc.petertodd.org"); // Peter Todd, only supports x1, x5, x9, and xd
// vSeeds.emplace_back("seed.bitcoin.sprovoost.nl"); // Sjors Provoost
// vSeeds.emplace_back("dnsseed.emzy.de"); // Stephan Oeste

vFixedSeeds = std::vector<SeedSpec6>(pnSeed6_main, pnSeed6_main + ARRAYLEN(pnSeed6_main));

Expand All @@ -235,19 +227,7 @@ class CMainParams : public CChainParams {

checkpointData = {
{
// { 11111, uint256S("0x0000000069e244f73d78e8fd29ba2fd2ed618bd6fa2ee92559f542fdb26e7c1d")},
// { 33333, uint256S("0x000000002dd5588a74784eaa7ab0507a18ad16a236e7b1ce69f00d7ddfb5d0a6")},
// { 74000, uint256S("0x0000000000573993a3c9e41ce34471c079dcf5f52a0e824a81e7f953b8661a20")},
// {105000, uint256S("0x00000000000291ce28027faea320c8d2b054b2e0fe44a773f3eefb151d6bdc97")},
// {134444, uint256S("0x00000000000005b12ffd4cd315cd34ffd4a594f430ac814c91184a0d42d2b0fe")},
// {168000, uint256S("0x000000000000099e61ea72015e79632f216fe6cb33d7899acb35b75c8303b763")},
// {193000, uint256S("0x000000000000059f452a5f7340de6682a977387c17010ff6e6c3bd83ca8b1317")},
// {210000, uint256S("0x000000000000048b95347e83192f69cf0366076336c639f9b7228e9ba171342e")},
// {216116, uint256S("0x00000000000001b4f4b433e81ee46494af945cf96014816a4e2370f11b23df4e")},
// {225430, uint256S("0x00000000000001c108384350f74090433e7fcf79a606b8e797f065b130575932")},
// {250000, uint256S("0x000000000000003887df1f29024b06fc2200b55f8af8f35453d7be294df2d214")},
// {279000, uint256S("0x0000000000000001ae8c72a0b0c301f67e3afca10e819efa9041e458e9bd7e40")},
// {295000, uint256S("0x00000000000000004d9b4ef50f0f9d686fd69db2e03af35a100370c64632a983")},
{0, consensus.hashGenesisBlock},
}
};

Expand Down Expand Up @@ -328,9 +308,9 @@ class CTestNetParams : public CChainParams {
m_assumed_blockchain_size = 30;
m_assumed_chain_state_size = 2;

base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,15); // '7' (111 ('m' or 'n') for bitcoin)
base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,128); // 't' (196 ('2') for bitcoin)
base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1,239); // (239 ('9' or 'c') for bitcoin)
base58Prefixes[PUBKEY_ADDRESS] = {0xf}; // '7' (111 ('m' or 'n') for bitcoin)
base58Prefixes[SCRIPT_ADDRESS] = {0x80}; // 't' (196 ('2') for bitcoin)
base58Prefixes[SECRET_KEY] = {0xef}; // (239 ('9' or 'c') for bitcoin)
base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x35, 0x87, 0xCF};
base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x35, 0x83, 0x94};

Expand Down Expand Up @@ -361,10 +341,6 @@ class CTestNetParams : public CChainParams {
vSeeds.clear();
// nodes with support for servicebits filtering should be at the top
vSeeds.emplace_back("testnet-seed.defichain.io");
// vSeeds.emplace_back("testnet-seed.bitcoin.jonasschnelli.ch");
// vSeeds.emplace_back("seed.tbtc.petertodd.org");
// vSeeds.emplace_back("seed.testnet.bitcoin.sprovoost.nl");
// vSeeds.emplace_back("testnet-seed.bluematt.me"); // Just a static list of stable node(s), only supports x9

vFixedSeeds = std::vector<SeedSpec6>(pnSeed6_test, pnSeed6_test + ARRAYLEN(pnSeed6_test));

Expand All @@ -375,7 +351,7 @@ class CTestNetParams : public CChainParams {

checkpointData = {
{
// {546, uint256S("000000002a936ca763904c3c35fce2f3556c559c0214345d31b1bcebf76acb70")},
{0, consensus.hashGenesisBlock},
}
};

Expand Down Expand Up @@ -454,9 +430,9 @@ class CRegTestParams : public CChainParams {

UpdateActivationParametersFromArgs(args);

base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,111);
base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,196);
base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1,239);
base58Prefixes[PUBKEY_ADDRESS] = {0x6f};
base58Prefixes[SCRIPT_ADDRESS] = {0xc4};
base58Prefixes[SECRET_KEY] = {0xef};
base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x35, 0x87, 0xCF};
base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x35, 0x83, 0x94};

Expand Down Expand Up @@ -495,7 +471,7 @@ class CRegTestParams : public CChainParams {

checkpointData = {
{
{0, uint256S("0x000006772a3244d0a5a4911a5cb1d7e910e175f4e4b77c755018459122fa7a89")},
{0, consensus.hashGenesisBlock},
}
};

Expand Down
2 changes: 1 addition & 1 deletion src/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4434,7 +4434,7 @@ std::shared_ptr<CWallet> CWallet::CreateWalletFromFile(interfaces::Chain& chain,
walletInstance->m_min_fee = CFeeRate(n);
}

walletInstance->m_allow_fallback_fee = Params().IsTestChain();
//walletInstance->m_allow_fallback_fee = Params().IsTestChain();
if (gArgs.IsArgSet("-fallbackfee")) {
CAmount nFeePerK = 0;
if (!ParseMoney(gArgs.GetArg("-fallbackfee", ""), nFeePerK)) {
Expand Down
4 changes: 2 additions & 2 deletions test/functional/rpc_blockchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"""

from decimal import Decimal
import http.client
# import http.client
import subprocess

from test_framework.test_framework import DefiTestFramework
Expand Down Expand Up @@ -288,7 +288,7 @@ def _test_stopatheight(self):
assert_raises(subprocess.TimeoutExpired, lambda: self.nodes[0].process.wait(timeout=3))
try:
self.nodes[0].generate(1)
except (ConnectionError, http.client.BadStatusLine):
except: # (ConnectionError, http.client.BadStatusLine): # pass on ANY exception
pass # The node already shut down before response
self.log.debug('Node should stop at this height...')
self.nodes[0].wait_until_stopped()
Expand Down