Skip to content
This repository was archived by the owner on Apr 2, 2025. It is now read-only.

Commit 0f8433c

Browse files
authored
Merge pull request jl777#498 from jl777/dPoW
fixes assetchain detection of notarizations and universal build
2 parents e06dbfb + b8c28d7 commit 0f8433c

45 files changed

Lines changed: 3851 additions & 1411 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,25 @@ sudo apt-get install build-essential pkg-config libcurl3-gnutls-dev libc6-dev li
3939

4040
Komodo
4141
------
42+
We have a release process that goes through several stages before it reaches master. This allows the most conservative users just use the master branch, which is only updated after the other branches have signed off on a release.
43+
44+
99% of the activity is in the dev branch, this is where I am testing each change one by one and there are literally thousands of updates. Only use this branch if you really want to be on the bleeding edge. I try to keep things stable, but there are times where necessarily there are bugs in the dev branch, since I am actively developing and debugging here. A good rule is to wait for at least 4 hours from the last update before using the dev branch (unless you know what you are doing)
45+
46+
After things look good in the dev branch, it is propagated to the beta branch, this is the version the notary nodes use. They are knowledegable command line server guys and so they have a keen eye for anything that wasnt caught during the dev cycle.
47+
48+
After the notary nodes verify things are working and the latest release is deemed stable, it is propagated to the dPoW branch. From here an automated Jenkins process builds it for all OS, and since the notary nodes are all unix, it is possible for some issues to be caught at this stage. The dPoW branch is what goes into the GUI installers.
49+
50+
After the GUI are updated and released and it is verified that no significant support issues were created, the master branch is finally updated.
51+
52+
Master branch: exchanges and users that build from the repo without changing branches
53+
dPoW branch: autobuild into GUI installers, unix, osx, windows
54+
beta branch: notary nodes, command line unix
55+
dev branch: bleeding edge, possibly wont even compile, multiple updates per hour
4256

4357
```
4458
git clone https://github.com/jl777/komodo
4559
cd komodo
60+
#you might want to: git checkout <branch>; git pull
4661
./zcutil/fetch-params.sh
4762
# -j8 uses 8 threads - replace 8 with number of threads you want to use
4863
./zcutil/build.sh -j8

depends/packages/boost.mk

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ $(package)_config_opts_i686_linux=address-model=32 architecture=x86
1919
$(package)_toolset_$(host_os)=gcc
2020
$(package)_archiver_$(host_os)=$($(package)_ar)
2121
$(package)_toolset_darwin=gcc
22+
$(package)_archiver_darwin=$($(package)_ar)
2223
$(package)_config_libraries=chrono,filesystem,program_options,system,thread,test
2324
$(package)_cxxflags=-fvisibility=hidden
2425
$(package)_cxxflags_linux=-fPIC
@@ -34,10 +35,18 @@ define $(package)_config_cmds
3435
./bootstrap.sh --without-icu --with-libraries=$(boost_config_libraries)
3536
endef
3637

38+
ifeq ($(host_os),linux)
3739
define $(package)_build_cmds
3840
./b2 -d2 -j2 -d1 --prefix=$($(package)_staging_prefix_dir) $($(package)_config_opts) cxxflags=-std=c++11 stage
3941
endef
40-
4142
define $(package)_stage_cmds
4243
./b2 -d0 -j4 --prefix=$($(package)_staging_prefix_dir) $($(package)_config_opts) cxxflags=-std=c++11 install
4344
endef
45+
else
46+
define $(package)_build_cmds
47+
./b2 -d2 -j2 -d1 --prefix=$($(package)_staging_prefix_dir) $($(package)_config_opts) stage
48+
endef
49+
define $(package)_stage_cmds
50+
./b2 -d0 -j4 --prefix=$($(package)_staging_prefix_dir) $($(package)_config_opts) install
51+
endef
52+
endif

depends/packages/libcurl.mk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ ifeq ($(build_os),darwin)
1313
define $(package)_set_vars
1414
$(package)_build_env=MACOSX_DEPLOYMENT_TARGET="10.9"
1515
endef
16-
else
16+
endif
17+
1718
define $(package)_config_cmds
1819
$($(package)_conf_tool) $($(package)_config_opts)
1920
endef
20-
endif
21+
2122

2223
ifeq ($(build_os),darwin)
2324
define $(package)_build_cmds

depends/packages/libgmp.mk

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,15 @@ define $(package)_config_cmds
2929
$($(package)_autoconf) --host=$(host) --build=$(build)
3030
endef
3131

32+
ifeq ($(build_os),darwin)
33+
define $(package)_build_cmds
34+
$(MAKE)
35+
endef
36+
else
3237
define $(package)_build_cmds
3338
$(MAKE) CPPFLAGS='-fPIC'
3439
endef
40+
endif
3541

3642
define $(package)_stage_cmds
3743
$(MAKE) DESTDIR=$($(package)_staging_dir) install ; echo '=== staging find for $(package):' ; find $($(package)_staging_dir)

depends/packages/libsnark.mk

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,24 @@ $(package)_git_commit=3854b20c25e8bc567aab2b558dec84d45f4a3e73
99
$(package)_dependencies=libgmp libsodium
1010

1111
ifeq ($(build_os),darwin)
12+
define $(package)_set_vars
13+
$(package)_build_env=CC="$($(package)_cc)" CXX="$($(package)_cxx)"
14+
$(package)_build_env+=CXXFLAGS="$($(package)_cxxflags) -DBINARY_OUTPUT -DSTATICLIB -DNO_PT_COMPRESSION=1 "
15+
endef
1216
define $(package)_build_cmds
13-
CC=gcc-5 CXX=g++-5 CXXFLAGS="-arch x86_64 -DBINARY_OUTPUT -DNO_PT_COMPRESSION=1" $(MAKE) lib DEPINST=$(host_prefix) CURVE=ALT_BN128 MULTICORE=0 NO_PROCPS=1 NO_GTEST=1 NO_DOCS=1 STATIC=1 NO_SUPERCOP=1 FEATUREFLAGS=-DMONTGOMERY_OUTPUT
17+
$(MAKE) lib DEPINST=$(host_prefix) CURVE=ALT_BN128 MULTICORE=1 NO_PROCPS=1 NO_GTEST=1 NO_DOCS=1 STATIC=1 NO_SUPERCOP=1 FEATUREFLAGS=-DMONTGOMERY_OUTPUT OPTFLAGS="-O2 -march=x86-64"
1418
endef
1519
else ifeq ($(host_os),mingw32)
1620
define $(package)_build_cmds
17-
CXX="x86_64-w64-mingw32-g++-posix" CXXFLAGS="-DBINARY_OUTPUT -DPTW32_STATIC_LIB -DSTATICLIB -DNO_PT_COMPRESSION=1 -fopenmp" $(MAKE) lib DEPINST=$(host_prefix) CURVE=ALT_BN128 MULTICORE=1 NO_PROCPS=1 NO_GTEST=1 NO_DOCS=1 STATIC=1 NO_SUPERCOP=1 FEATUREFLAGS=-DMONTGOMERY_OUTPUT OPTFLAGS="-O2 -march=x86-64"
21+
CXX="x86_64-w64-mingw32-g++-posix" CXXFLAGS="-DBINARY_OUTPUT -DPTW32_STATIC_LIB -DSTATICLIB -DNO_PT_COMPRESSION=1 -fopenmp" $(MAKE) lib DEPINST=$(host_prefix) CURVE=ALT_BN128 MULTICORE=1 NO_PROCPS=1 NO_GTEST=1 NO_DOCS=1 STATIC=1 NO_SUPERCOP=1 FEATUREFLAGS=-DMONTGOMERY_OUTPUT OPTFLAGS="-O2 -march=x86-64"
1822
endef
1923
else
2024
define $(package)_build_cmds
21-
CXXFLAGS="-fPIC -DBINARY_OUTPUT -DNO_PT_COMPRESSION=1" $(MAKE) lib DEPINST=$(host_prefix) CURVE=ALT_BN128 MULTICORE=1 NO_PROCPS=1 NO_GTEST=1 NO_DOCS=1 STATIC=1 NO_SUPERCOP=1 FEATUREFLAGS=-DMONTGOMERY_OUTPUT OPTFLAGS="-O2 -march=x86-64"
25+
CXXFLAGS="-fPIC -DBINARY_OUTPUT -DNO_PT_COMPRESSION=1" $(MAKE) lib DEPINST=$(host_prefix) CURVE=ALT_BN128 MULTICORE=1 NO_PROCPS=1 NO_GTEST=1 NO_DOCS=1 STATIC=1 NO_SUPERCOP=1 FEATUREFLAGS=-DMONTGOMERY_OUTPUT OPTFLAGS="-O2 -march=x86-64"
2226
endef
2327
endif
2428

2529

26-
27-
28-
2930
define $(package)_stage_cmds
3031
$(MAKE) install STATIC=1 DEPINST=$(host_prefix) PREFIX=$($(package)_staging_dir)$(host_prefix) CURVE=ALT_BN128 NO_SUPERCOP=1
3132
endef

src/assetchains.old

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
set -x
3-
delay=10
3+
delay=60
44
source pubkey.txt
55
echo $pubkey
66

src/bitcoin-cli.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class CConnectionFailed : public std::runtime_error
7272

7373
#include "komodo_globals.h"
7474
#include "komodo_utils.h"
75-
#include "cJSON.c"
75+
#include "komodo_cJSON.c"
7676
#include "komodo_notary.h"
7777

7878
void komodo_stateupdate(int32_t height,uint8_t notarypubs[][33],uint8_t numnotaries,uint8_t notaryid,uint256 txhash,uint64_t voutmask,uint8_t numvouts,uint32_t *pvals,uint8_t numpvals,int32_t KMDheight,uint32_t KMDtimestamp,uint64_t opretvalue,uint8_t *opretbuf,uint16_t opretlen,uint16_t vout)

src/bitcoind.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ bool AppInit(int argc, char* argv[])
173173
exit(1);
174174
}
175175

176-
#ifndef WIN32
176+
#ifndef _WIN32
177177
fDaemon = GetBoolArg("-daemon", false);
178178
if (fDaemon)
179179
{

0 commit comments

Comments
 (0)