Skip to content

Commit 9feb4b9

Browse files
committed
Major updates integration from all upstreams
2 parents 0c8fa56 + 0e0f5e4 commit 9feb4b9

File tree

396 files changed

+25466
-6803
lines changed

Some content is hidden

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

396 files changed

+25466
-6803
lines changed

.gitignore

-4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ src/zcash-gtest
77
src/zcash-tx
88
src/test/test_bitcoin
99

10-
# Zcash utilities
11-
src/zcash/GenerateParams
12-
src/zcash/CreateJoinSplit
13-
1410
*zcashTest.pk
1511
*zcashTest.vk
1612

COPYING

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
Copyright (c) 2016-2018 The Komodo developers
2-
Copyright (c) 2016-2017 The Zcash developers
31
Copyright (c) 2009-2017 The Bitcoin Core developers
2+
Copyright (c) 2009-2018 Bitcoin Developers
3+
Copyright (c) 2016-2017 The Zcash developers
4+
Copyright (c) 2016-2018 The Komodo developers
45
Copyright (c) 2018 The VerusCoin developers
56

67
Permission is hereby granted, free of charge, to any person obtaining a copy

README.md

+14-11
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,16 @@ Note that this directory is correct for Linux, not Mac or Windows
108108
./src/komodo-cli help
109109
**Zcash is unfinished and highly experimental.** Use at your own risk.
110110

111-
Where do I begin?
112-
-----------------
113-
We have a guide for joining the main Zcash network:
114-
https://github.com/zcash/zcash/wiki/1.0-User-Guide
111+
#### :ledger: Deprecation Policy
112+
113+
This release is considered deprecated 16 weeks after the release day. There
114+
is an automatic deprecation shutdown feature which will halt the node some
115+
time after this 16 week time period. The automatic feature is based on block
116+
height.
115117

116118
#Older Komodo Details
117119
The remaining text is from the komodo source we forked when creating VerusCoin/Veruscoin.
120+
118121
**To change modes:**
119122

120123
a) backup all privkeys (launch komodod with `-exportdir=<path>` and `dumpwallet`)
@@ -124,18 +127,18 @@ d) resume sync till it gets to chaintip
124127

125128
For example:
126129
```shell
127-
./komodod -exportdir=/tmp &
128-
./komodo-cli dumpwallet example
129-
./komodo-cli stop
130-
mv ~/.komodo ~/.komodo.old && mkdir ~/.komodo && cp ~/.komodo.old/komodo.conf ~/.komodo.old/peers.dat ~/.komodo
131-
./komodod -exchange -exportdir=/tmp &
132-
./komodo-cli importwallet /tmp/example
130+
./verusd -exportdir=/tmp &
131+
./verus dumpwallet example
132+
./verus stop
133+
mv ~/.komodo/VRSC ~/.komodo/VRSC.old && mkdir ~/.komodo/VRSC && cp ~/.komodo/VRSC.old/VRSC.conf ~/.komodo/VRSC.old/peers.dat ~/.komodo/VRSC
134+
./verusd -exchange -exportdir=/tmp &
135+
./verus importwallet /tmp/example
133136
```
134137
---
135138

136139

137140
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
138141

139-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
142+
The above copyright notices and this permission notice shall be included in all copies or substantial portions of the Software.
140143

141144
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

VRSC_7776

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
curl --url "http://127.0.0.1:7776" --data "{\"conf\":\"VRSC.conf\",\"path\":\"${HOME#"/"}/.komodo/VRSC\",\"unitval\":\"20\",\"zcash\":1,\"RELAY\":-1,\"VALIDATE\":0,\"prefetchlag\":-1,\"poll\":100,\"active\":1,\"agent\":\"iguana\",\"method\":\"addcoin\",\"startpend\":4,\"endpend\":4,\"services\":129,\"maxpeers\":8,\"newcoin\":\"VRSC\",\"name\":\"VRSC\",\"hasheaders\":1,\"useaddmultisig\":0,\"netmagic\":\"ad8a58e2\",\"p2p\":27485,\"rpc\":27486,\"pubval\":60,\"p2shval\":85,\"wifval\":188,\"txfee_satoshis\":\"10000\",\"isPoS\":0,\"minoutput\":10000,\"minconfirms\":2,\"genesishash\":\"027e3758c3a65b12aa1046462b486d0a63bfa1beae327897f56c5cfb7daaae71\",\"protover\":170002,\"genesisblock\":\"0100000000000000000000000000000000000000000000000000000000000000000000003ba3edfd7a7b12b27ac72c3e67768f617fc81bc3888a51323a9fb8aa4b1e5e4a000000000000000000000000000000000000000000000000000000000000000029ab5f490f0f0f200b00000000000000000000000000000000000000000000000000000000000000fd4005000d5ba7cda5d473947263bf194285317179d2b0d307119c2e7cc4bd8ac456f0774bd52b0cd9249be9d40718b6397a4c7bbd8f2b3272fed2823cd2af4bd1632200ba4bf796727d6347b225f670f292343274cc35099466f5fb5f0cd1c105121b28213d15db2ed7bdba490b4cedc69742a57b7c25af24485e523aadbb77a0144fc76f79ef73bd8530d42b9f3b9bed1c135ad1fe152923fafe98f95f76f1615e64c4abb1137f4c31b218ba2782bc15534788dda2cc08a0ee2987c8b27ff41bd4e31cd5fb5643dfe862c9a02ca9f90c8c51a6671d681d04ad47e4b53b1518d4befafefe8cadfb912f3d03051b1efbf1dfe37b56e93a741d8dfd80d576ca250bee55fab1311fc7b3255977558cdda6f7d6f875306e43a14413facdaed2f46093e0ef1e8f8a963e1632dcbeebd8e49fd16b57d49b08f9762de89157c65233f60c8e38a1f503a48c555f8ec45dedecd574a37601323c27be597b956343107f8bd80f3a925afaf30811df83c402116bb9c1e5231c70fff899a7c82f73c902ba54da53cc459b7bf1113db65cc8f6914d3618560ea69abd13658fa7b6af92d374d6eca9529f8bd565166e4fcbf2a8dfb3c9b69539d4d2ee2e9321b85b331925df195915f2757637c2805e1d4131e1ad9ef9bc1bb1c732d8dba4738716d351ab30c996c8657bab39567ee3b29c6d054b711495c0d52e1cd5d8e55b4f0f0325b97369280755b46a02afd54be4ddd9f77c22272b8bbb17ff5118fedbae2564524e797bd28b5f74f7079d532ccc059807989f94d267f47e724b3f1ecfe00ec9e6541c961080d8891251b84b4480bc292f6a180bea089fef5bbda56e1e41390d7c0e85ba0ef530f7177413481a226465a36ef6afe1e2bca69d2078712b3912bba1a99b1fbff0d355d6ffe726d2bb6fbc103c4ac5756e5bee6e47e17424ebcbf1b63d8cb90ce2e40198b4f4198689daea254307e52a25562f4c1455340f0ffeb10f9d8e914775e37d0edca019fb1b9c6ef81255ed86bc51c5391e0591480f66e2d88c5f4fd7277697968656a9b113ab97f874fdd5f2465e5559533e01ba13ef4a8f7a21d02c30c8ded68e8c54603ab9c8084ef6d9eb4e92c75b078539e2ae786ebab6dab73a09e0aa9ac575bcefb29e930ae656e58bcb513f7e3c17e079dce4f05b5dbc18c2a872b22509740ebe6a3903e00ad1abc55076441862643f93606e3dc35e8d9f2caef3ee6be14d513b2e062b21d0061de3bd56881713a1a5c17f5ace05e1ec09da53f99442df175a49bd154aa96e4949decd52fed79ccf7ccbce32941419c314e374e4a396ac553e17b5340336a1a25c22f9e42a243ba5404450b650acfc826a6e432971ace776e15719515e1634ceb9a4a35061b668c74998d3dfb5827f6238ec015377e6f9c94f38108768cf6e5c8b132e0303fb5a200368f845ad9d46343035a6ff94031df8d8309415bb3f6cd5ede9c135fdabcc030599858d803c0f85be7661c88984d88faa3d26fb0e9aac0056a53f1b5d0baed713c853c4a2726869a0a124a8a5bbc0fc0ef80c8ae4cb53636aa02503b86a1eb9836fcc259823e2692d921d88e1ffc1e6cb2bde43939ceb3f32a611686f539f8f7c9f0bf00381f743607d40960f06d347d1cd8ac8a51969c25e37150efdf7aa4c2037a2fd0516fb444525ab157a0ed0a7412b2fa69b217fe397263153782c0f64351fbdf2678fa0dc8569912dcd8e3ccad38f34f23bbbce14c6a26ac24911b308b82c7e43062d180baeac4ba7153858365c72c63dcf5f6a5b08070b730adb017aeae925b7d0439979e2679f45ed2f25a7edcfd2fb77a8794630285ccb0a071f5cce410b46dbf9750b0354aae8b65574501cc69efb5b6a43444074fee116641bb29da56c2b4a7f456991fc92b2\",\"debug\":0,\"seedipaddr\":\"78.47.196.146\"}"

code_of_conduct.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ Project maintainers have the right and responsibility to remove, edit, or
2424
reject comments, commits, code, wiki edits, issues, and other contributions
2525
that are not aligned to this Code of Conduct, or to ban temporarily or
2626
permanently any contributor for other behaviors that they deem inappropriate,
27-
threatening, offensive, or harmful.
27+
threatening, offensive, or harmful. Note that contributors may be volunteers
28+
who do not represent Zcash Company. They are free to express their own
29+
opinions so long as they adhere to these guidelines.
2830

2931
By adopting this Code of Conduct, project maintainers commit themselves to
3032
fairly and consistently applying these principles to every aspect of managing

configure.ac

+14-27
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
dnl require autoconf 2.60 (AS_ECHO/AS_ECHO_N)
22
AC_PREREQ([2.60])
3-
define(_CLIENT_VERSION_MAJOR, 1)
3+
define(_CLIENT_VERSION_MAJOR, 2)
44
define(_CLIENT_VERSION_MINOR, 0)
5-
define(_CLIENT_VERSION_REVISION, 15)
5+
define(_CLIENT_VERSION_REVISION, 0)
66
define(_CLIENT_VERSION_BUILD, 50)
77
define(_ZC_BUILD_VAL, m4_if(m4_eval(_CLIENT_VERSION_BUILD < 25), 1, m4_incr(_CLIENT_VERSION_BUILD), m4_eval(_CLIENT_VERSION_BUILD < 50), 1, m4_eval(_CLIENT_VERSION_BUILD - 24), m4_eval(_CLIENT_VERSION_BUILD == 50), 1, , m4_eval(_CLIENT_VERSION_BUILD - 50)))
88
define(_CLIENT_VERSION_SUFFIX, m4_if(m4_eval(_CLIENT_VERSION_BUILD < 25), 1, _CLIENT_VERSION_REVISION-beta$1, m4_eval(_CLIENT_VERSION_BUILD < 50), 1, _CLIENT_VERSION_REVISION-rc$1, m4_eval(_CLIENT_VERSION_BUILD == 50), 1, _CLIENT_VERSION_REVISION, _CLIENT_VERSION_REVISION-$1)))
@@ -96,12 +96,6 @@ AC_ARG_ENABLE([mining],
9696
[enable_mining=$enableval],
9797
[enable_mining=yes])
9898

99-
AC_ARG_ENABLE([rust],
100-
[AS_HELP_STRING([--enable-rust],
101-
[enable rust (default is yes)])],
102-
[enable_rust=$enableval],
103-
[enable_rust=yes])
104-
10599
AC_ARG_ENABLE([proton],
106100
[AS_HELP_STRING([--disable-proton],
107101
[disable Proton (AMQP messaging)])],
@@ -238,9 +232,9 @@ AC_ARG_WITH([utils],
238232

239233
AC_ARG_WITH([libs],
240234
[AS_HELP_STRING([--with-libs],
241-
[build libraries (default=yes)])],
235+
[build libraries (default=no)])],
242236
[build_bitcoin_libs=$withval],
243-
[build_bitcoin_libs=yes])
237+
[build_bitcoin_libs=no])
244238

245239
AC_ARG_WITH([daemon],
246240
[AS_HELP_STRING([--with-daemon],
@@ -772,15 +766,20 @@ fi
772766
#AC_CHECK_HEADER([libsnark/gadgetlib1/gadget.hpp],,AC_MSG_ERROR(libsnark headers missing))
773767
#AC_CHECK_LIB([snark],[main],LIBSNARK_LIBS=-lsnark, [AC_MSG_ERROR(libsnark missing)], [-lgmpxx])
774768

775-
RUST_LIBS=""
776-
if test x$enable_rust != xno; then
777-
RUST_LIBS="-lrustzcash"
778-
fi
769+
RUST_LIBS="-lrustzcash"
770+
case $host in
771+
*mingw*)
772+
;;
773+
*)
774+
RUST_LIBS="$RUST_LIBS -ldl"
775+
;;
776+
esac
779777

780778
dnl Check for OpenMP support
781779
AX_OPENMP(
782780
[AC_DEFINE(HAVE_OPENMP, 1, [Define if OpenMP is enabled])
783781
AM_CONDITIONAL([HAVE_OPENMP], [true])
782+
CPPFLAGS="$CPPFLAGS -DMULTICORE"
784783
CXXFLAGS="$CXXFLAGS $OPENMP_CXXFLAGS"],
785784
[AC_MSG_WARN([OpenMP not supported, disabling multithreading])
786785
AC_DEFINE(HAVE_OPENMP, 0, [Define if OpenMP is enabled])
@@ -799,7 +798,7 @@ AX_CHECK_COMPILE_FLAG([-fwrapv],[CXXFLAGS="$CXXFLAGS -fwrapv"])
799798
AX_CHECK_COMPILE_FLAG([-fno-strict-aliasing],[CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"])
800799
AX_CHECK_COMPILE_FLAG([-Wno-builtin-declaration-mismatch],[CXXFLAGS="$CXXFLAGS -Wno-builtin-declaration-mismatch"],,[[$CXXFLAG_WERROR]])
801800

802-
LIBZCASH_LIBS="-lgmp -lgmpxx -lboost_system -lcrypto -lsodium $RUST_LIBS"
801+
LIBZCASH_LIBS="-lgmp -lgmpxx $BOOST_SYSTEM_LIB -lcrypto -lsodium $RUST_LIBS"
803802

804803
AC_MSG_CHECKING([whether to build bitcoind])
805804
AM_CONDITIONAL([BUILD_BITCOIND], [test x$build_bitcoind = xyes])
@@ -859,16 +858,6 @@ else
859858
AC_MSG_RESULT(no)
860859
fi
861860

862-
dnl enable rust
863-
AC_MSG_CHECKING([if rust should be enabled])
864-
if test x$enable_rust != xno; then
865-
AC_MSG_RESULT(yes)
866-
AC_DEFINE(ENABLE_RUST, 1, [Define to 1 to enable Rust language dependent functions])
867-
868-
else
869-
AC_MSG_RESULT(no)
870-
fi
871-
872861
AM_CONDITIONAL([ENABLE_ZMQ], [test "x$use_zmq" = "xyes"])
873862

874863
AM_CONDITIONAL([ENABLE_PROTON], [test "x$use_proton" = "xyes"])
@@ -898,7 +887,6 @@ AM_CONDITIONAL([BUILD_DARWIN], [test x$BUILD_OS = xdarwin])
898887
AM_CONDITIONAL([TARGET_WINDOWS], [test x$TARGET_OS = xwindows])
899888
AM_CONDITIONAL([ENABLE_WALLET],[test x$enable_wallet = xyes])
900889
AM_CONDITIONAL([ENABLE_MINING],[test x$enable_mining = xyes])
901-
AM_CONDITIONAL([ENABLE_RUST],[test x$enable_rust = xyes])
902890
AM_CONDITIONAL([ENABLE_TESTS],[test x$BUILD_TEST = xyes])
903891
AM_CONDITIONAL([USE_LCOV],[test x$use_lcov = xyes])
904892
AM_CONDITIONAL([GLIBC_BACK_COMPAT],[test x$use_glibc_compat = xyes])
@@ -991,7 +979,6 @@ esac
991979
echo
992980
echo "Options used to compile and link:"
993981
echo " with wallet = $enable_wallet"
994-
echo " with rust = $enable_rust"
995982
echo " with proton = $use_proton"
996983
echo " with zmq = $use_zmq"
997984
echo " with test = $use_tests"

contrib/ci-workers/README.md

+23-23
Original file line numberDiff line numberDiff line change
@@ -5,58 +5,58 @@ installation for use as a Buildbot worker in Zcash's CI.
55

66
# Criteria for Adding Workers
77

8-
a. Don't add workers until users complain about a problem on a platform
9-
that doesn't yet have workers or if we anticipate many users will use
10-
a platform, we may pre-emptively add an unsupported worker for it.
8+
a. Don't add workers until users complain about a problem on a platform that
9+
doesn't yet have workers. However, if we anticipate many users will use a
10+
platform, we may pre-emptively add an unsupported worker for it.
1111

1212
b. Prioritize the platforms that seem to have the most users.
1313

14-
c. When adding workers start by adding workers for the "most common"
15-
variant of any distro, then if users later encounter problems with a
16-
sub-variant, we can consider adding new workers at that point.
17-
Example: add Ubuntu Desktop before Xubuntu, on the assumption the
18-
former has a larger population base.
14+
c. When adding workers, start by adding workers for the "most common" variant of
15+
any distro. Then if users later encounter problems with a sub-variant, we can
16+
consider adding new workers at that point. Example: add Ubuntu Desktop before
17+
Xubuntu, on the assumption the former has a larger population base, and the
18+
latter only materially differs in the GUI.
1919

2020
# Setting up a latent worker on Amazon EC2
2121

22-
- Add a regular (non-latent) worker to the master.cfg for dev-ci.z.cash, and
23-
deploy the changes.
22+
1. Add a regular (non-latent) worker to the master.cfg for dev-ci.z.cash, and
23+
deploy the changes.
2424
- This enables the Ansible playbook to run to completion, ending in the worker
2525
connecting to the master.
2626

27-
- Start a basic EC2 instance using the template AMI for the target OS.
27+
2. Start a basic EC2 instance using the template AMI for the target OS.
2828
- Choose the smallest instance size, it won't be used for building Zcash.
2929

30-
- Figure out which user to log into the instance with.
30+
3. Figure out which user to log into the instance with.
3131
- E.g. for the Ubuntu template, use "ubuntu" instead of "root"
3232
- If you get an Ansible error later with a message like "Failed to connect to
3333
the host via ssh: Received message too long 1349281121\r\n", that means the
3434
instance is sending a text string in response to the SSH connection, and the
3535
Ansible protocol is balking. Try manually logging in with the same
3636
credentials to diagnose.
3737

38-
- Create `inventory/hosts` containing the following:
38+
4. Create `inventory/hosts` containing the following:
3939

4040
[zcash-ci-worker-unix]
4141
some-name ansible_host=<INSTANCE_IP> ansible_ssh_user=<USERNAME>
4242

43-
- Run `ansible-playbook -e buildbot_worker_host_template=templates/host.ec2.j2 -i inventory/hosts unix.yml`,
44-
passing in the worker's Buildbot name and password.
43+
5. Run `ansible-playbook -e buildbot_worker_host_template=templates/host.ec2.j2 -i inventory/hosts unix.yml`,
44+
passing in the worker's Buildbot name and password.
4545
- After a successful run, the worker should be connected to dev-ci.z.cash and
4646
visible in its worker list.
4747

48-
- Create an AMI from the instance. This is the worker AMI to put into the
49-
master.cfg for dev-ci.z.cash.
48+
6. Create an AMI from the instance. This is the worker AMI to put into the
49+
master.cfg for dev-ci.z.cash.
5050
- 16 GB of storage should be sufficient.
5151

52-
- SSH into the instance, and edit the worker config to connect to ci.z.cash.
52+
7. SSH into the instance, and edit the worker config to connect to ci.z.cash.
5353

54-
- Create an AMI from the instance. This is the worker AMI to put into the
55-
master.cfg for ci.z.cash.
54+
8. Create an AMI from the instance. This is the worker AMI to put into the
55+
master.cfg for ci.z.cash.
5656
- 16 GB of storage should be sufficient.
5757

58-
- Delete the instance (it is no longer needed).
58+
9. Delete the instance (it is no longer needed).
5959

60-
- Edit the master.cfg to turn the new worker into a latent (using the new AMI
61-
IDs), add it to the appropriate worker groups, set up new builders etc.
60+
10. Edit the master.cfg to turn the new worker into a latent (using the new AMI
61+
IDs), add it to the appropriate worker groups, set up new builders etc.
6262
- Deploy this via the normal PR review process.

contrib/ci-workers/files/bashrc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export PATH=$HOME/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2+
export EDITOR=vim
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
- name: Check if brew is installed
3+
stat:
4+
path: /usr/local/bin/brew
5+
register: brew_check
6+
7+
- name: Fail if brew is unavailable
8+
fail:
9+
msg: 'brew is not installed! Please install Homebrew: https://docs.brew.sh/Installation.html'
10+
when: not brew_check.stat.exists
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>Label</key>
6+
<string>net.buildbot.worker</string>
7+
<key>ProgramArguments</key>
8+
<array>
9+
<string>{{ buildbot_worker_dir }}/venv/bin/buildbot-worker</string>
10+
<string>start</string>
11+
<string>{{ buildbot_worker_name }}</string>
12+
</array>
13+
<key>WorkingDirectory</key>
14+
<string>{{ buildbot_worker_dir }}</string>
15+
<key>UserName</key>
16+
<string>{{ buildbot_worker_user }}</string>
17+
<key>KeepAlive</key>
18+
<dict>
19+
<key>NetworkState</key>
20+
<true/>
21+
</dict>
22+
</dict>
23+
</plist>

contrib/ci-workers/templates/buildbot-worker.service.j2

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ After=network.target
55

66
[Service]
77
Type=forking
8-
PIDFile=/home/{{ buildbot_worker_user }}/{{ buildbot_worker_name }}/twistd.pid
9-
WorkingDirectory=/home/{{ buildbot_worker_user }}
10-
ExecStart={{ pip_bin_dir }}/buildbot-worker start {{ buildbot_worker_name }}
11-
ExecReload={{ pip_bin_dir }}/buildbot-worker restart {{ buildbot_worker_name }}
12-
ExecStop={{ pip_bin_dir }}/buildbot-worker stop {{ buildbot_worker_name }}
8+
PIDFile={{ buildbot_worker_dir }}/{{ buildbot_worker_name }}/twistd.pid
9+
WorkingDirectory={{ buildbot_worker_dir }}
10+
ExecStart={{ buildbot_worker_dir }}/venv/bin/buildbot-worker start {{ buildbot_worker_name }}
11+
ExecReload={{ buildbot_worker_dir }}/venv/bin/buildbot-worker restart {{ buildbot_worker_name }}
12+
ExecStop={{ buildbot_worker_dir }}/venv/bin/buildbot-worker stop {{ buildbot_worker_name }}
1313
Restart=always
1414
User={{ buildbot_worker_user }}
1515

contrib/ci-workers/templates/host.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
OS: {{ ansible_distribution }} {{ ansible_distribution_version }}
22
Memory: {{ ansible_memtotal_mb }} MB
3-
CPU: {{ ansible_processor[1] }}
3+
CPU: {{ ansible_processor if ansible_processor is string else ansible_processor[1] }} ({{ ansible_processor_cores }} cores)

0 commit comments

Comments
 (0)