Skip to content
This repository was archived by the owner on Aug 27, 2025. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
1692be4
Update release version to v9.3.0rc0
chetan-zilliqa Oct 26, 2023
5eec446
Tweak constants for blocktime and txn distribution (#3838)
chetan-zilliqa Oct 30, 2023
30d9bc9
(feat) ZIL-5423: Deployment instructions for reward control contracts…
chetan-zilliqa Oct 30, 2023
e540aa8
Update release version to v9.3.0rc1 (#3841)
chetan-zilliqa Oct 30, 2023
a494e09
[release/v9.3] Merge master to release/v9.3 (#3843)
chetan-zilliqa Oct 30, 2023
516cee4
Update release version to v9.3.0rc2 (#3844)
chetan-zilliqa Oct 30, 2023
703127c
[master] ZIL-5406: add support for a cdn (#3848)
yaron-zilliqa Oct 30, 2023
71624c1
Update version to v9.3.0rc3.
yaron-zilliqa Oct 30, 2023
b06a536
[release/v9.3] release v9.3.0rc4 preparation (#3853)
mauromedda Oct 31, 2023
a5b21d0
Merge master and fix conflict
chetan-zilliqa Nov 1, 2023
cbc1566
Update the version to v9.3.0rc5
chetan-zilliqa Nov 1, 2023
f089b1d
Fixes to the scripts and startups - does not touch cpp files.
Oct 31, 2023
c876d4a
Toned down the warnings in p2pserver
Oct 31, 2023
88ae3b4
Toned down the warnings in p2pserver
Oct 31, 2023
9295d0a
Toned down the warnings in p2pserver
Nov 1, 2023
5efc51b
overwrote with mac version - oops
Steve-White-UK Nov 1, 2023
c39134e
Added more configuration changes to desk mode.
Nov 2, 2023
45d4e83
Adding more helpful logging
bzawisto Nov 2, 2023
4cd61b8
Adding more helpful logging
bzawisto Nov 2, 2023
764b838
Made my changes to config descrete and inside localdev under the desk…
Nov 2, 2023
3568490
Made my changes to config descrete and inside localdev under the desk…
Nov 2, 2023
895627a
Made my changes to config descrete and inside localdev under the desk…
Nov 2, 2023
2264486
Made my changes to config descrete and inside localdev under the desk…
Nov 2, 2023
6d0e64f
Made my changes to config descrete and inside localdev under the desk…
Nov 3, 2023
22b5161
Merge remote-tracking branch 'origin/master' into debug/unix-domain-s…
Steve-White-UK Nov 3, 2023
0118808
Made my changes to config descrete and inside localdev under the desk…
Nov 3, 2023
19b88da
Merge remote-tracking branch 'origin/debug/unix-domain-sockets-tests'…
Steve-White-UK Nov 3, 2023
333bf83
Merge branch 'master' into ZIL-5462
bzawisto Nov 6, 2023
075b2f4
Adding more helpful logs
bzawisto Nov 6, 2023
2c5b92d
Accept new connection regardless of current error
bzawisto Nov 7, 2023
dc0e3cf
Merge branch 'master' into ZIL-5462
bzawisto Nov 7, 2023
c12b1f7
Missing file:
bzawisto Nov 7, 2023
e39d345
Add more logging
bzawisto Nov 7, 2023
3a562ed
Add heartbeat timer for p2p connections
bzawisto Nov 7, 2023
5973b5e
Fix
bzawisto Nov 7, 2023
051847e
Made my changes to config descrete and inside localdev under the desk…
Nov 7, 2023
0092272
Merge remote-tracking branch 'origin/debug/unix-domain-sockets-tests'…
Steve-White-UK Nov 7, 2023
e6c339a
Merge remote-tracking branch 'origin/master' into debug/unix-domain-s…
Steve-White-UK Nov 7, 2023
e686878
Minor fix
bzawisto Nov 7, 2023
14ad622
Some fixes
bzawisto Nov 8, 2023
f0a2d52
Use async dns lookups if needed
bzawisto Nov 8, 2023
625d02b
Better logging
bzawisto Nov 8, 2023
ae0b14b
fix merge problem
chetan-zilliqa Oct 17, 2023
d57d2cc
Merge remote-tracking branch 'origin/ZIL-5462' into debug/unix-domain…
Steve-White-UK Nov 8, 2023
4df95b6
log both commit and response audit
chetan-zilliqa Nov 8, 2023
99a1992
overwrote with mac version - oops
Steve-White-UK Nov 8, 2023
8ab37f2
overwrote with mac version - oops
Steve-White-UK Nov 8, 2023
48cabb9
overwrote with mac version - oops
Steve-White-UK Nov 8, 2023
ca181ea
overwrote with mac version - oops
Steve-White-UK Nov 8, 2023
3f8f701
overwrote with mac version - oops
Steve-White-UK Nov 8, 2023
98d911f
overwrote with mac version - oops
Steve-White-UK Nov 9, 2023
64fb5b1
Some additional fixes
bzawisto Nov 9, 2023
6639ea6
Merge branch 'ZIL-5462' of ssh://github.com/Zilliqa/Zilliqa into ZIL-…
bzawisto Nov 9, 2023
c20e7df
Make one log infoed
bzawisto Nov 9, 2023
4344dff
More logs
bzawisto Nov 9, 2023
8e2fe84
Leader always sends block
bzawisto Nov 9, 2023
9349a84
Don't expire messages for dns-like nodes too early
bzawisto Nov 9, 2023
abc1d8f
More logs
bzawisto Nov 9, 2023
90917f5
Missing port
bzawisto Nov 9, 2023
664a835
Fix
bzawisto Nov 9, 2023
68135eb
Don't log
bzawisto Nov 9, 2023
8c73f1f
Merge remote-tracking branch 'origin/ZIL-5462' into debug/unix-domain…
Nov 10, 2023
cac0e9c
Add the increase to DS_ANNOUNCEMENT_DELAY_IN_MS
Nov 10, 2023
7303424
Merge remote-tracking branch 'origin/master' into debug/unix-domain-s…
Nov 10, 2023
64c6b9f
Add the increase to DS_ANNOUNCEMENT_DELAY_IN_MS
Nov 10, 2023
273d49f
Add the increase to DS_ANNOUNCEMENT_DELAY_IN_MS
Nov 13, 2023
f58b43b
Patchup again after changes to main
Steve-White-UK Nov 13, 2023
f04e504
Merge remote-tracking branch 'origin/master' into debug/unix-domain-s…
Steve-White-UK Nov 13, 2023
28c30d1
Patchup again after changes to main
Steve-White-UK Nov 13, 2023
53154a9
Patchup again after changes to main
Steve-White-UK Nov 13, 2023
15a04f3
Patchup again after changes to main
Steve-White-UK Nov 13, 2023
2786f77
Adjusted the constants.xml to match mainnet
Nov 14, 2023
2cb0651
Made my changes to config descrete and inside localdev under the desk…
Nov 16, 2023
54320d9
Merge remote-tracking branch 'origin/debug/unix-domain-sockets-tests'…
Nov 16, 2023
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
6 changes: 3 additions & 3 deletions VERSION
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
=== [Zilliqa]Major Version ===
0
9
=== [Zilliqa]Minor Version ===
0
3
=== [Zilliqa]Fix Version ===
0
0rc5
=== [Zilliqa] Expected DS Epoch===
0
=== [Scilla] Expected DS Epoch===
Expand Down
8 changes: 6 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,17 @@ do
;;
fuzzer)
CMAKE_EXTRA_OPTIONS="-DLIBFUZZER=ON ${CMAKE_EXTRA_OPTIONS}"
echo "Build with libfuzzer"
echo "Build with libfuzzer"``
;;
style)
CMAKE_EXTRA_OPTIONS="-DLLVM_EXTRA_TOOLS=ON ${CMAKE_EXTRA_OPTIONS}"
run_clang_format_fix=1
echo "Build with LLVM Extra Tools for coding style check (clang-format-fix)"
;;
nomark)
CMAKE_EXTRA_OPTIONS="-DNOMARK=ON ${CMAKE_EXTRA_OPTIONS}"
echo "Build with no markers"
;;
linter)
CMAKE_EXTRA_OPTIONS="-DLLVM_EXTRA_TOOLS=ON ${CMAKE_EXTRA_OPTIONS}"
run_clang_tidy_fix=1
Expand Down Expand Up @@ -170,9 +174,9 @@ echo "Current directory: $(pwd)"
echo "Build directory: ${build_dir}"
echo "Install directory: ${install_dir}"

jobs=$((n_parallel - 1))

echo building using $jobs jobs
jobs=6

cmake -H. -B"${build_dir}" ${CMAKE_EXTRA_OPTIONS} -DCMAKE_BUILD_TYPE=${build_type} -DCMAKE_INSTALL_PREFIX="${install_dir}" -DCMAKE_TOOLCHAIN_FILE="${VCPKG_ROOT}"/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=${VCPKG_TRIPLET}
cmake --build "${build_dir}" --config ${build_type} -j $jobs
Expand Down
78 changes: 42 additions & 36 deletions constants.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<!-- format guideline: non-tab four-space indentation -->
<node>
<general>
<DEBUG_LEVEL>4</DEBUG_LEVEL>
<DEBUG_LEVEL>3</DEBUG_LEVEL>
<ENABLE_DO_REJOIN>false</ENABLE_DO_REJOIN>
<LOOKUP_NODE_MODE>false</LOOKUP_NODE_MODE>
<MAX_ENTRIES_FOR_DIAGNOSTIC_DATA>25</MAX_ENTRIES_FOR_DIAGNOSTIC_DATA>
<MAX_ENTRIES_FOR_DIAGNOSTIC_DATA>50</MAX_ENTRIES_FOR_DIAGNOSTIC_DATA>
<CHAIN_ID>1</CHAIN_ID>
<NETWORK_ID>3</NETWORK_ID>
<!-- testnet -->
Expand All @@ -19,7 +19,7 @@
<INIT_TRIE_DB_SNAPSHOT_EPOCH>0</INIT_TRIE_DB_SNAPSHOT_EPOCH>
<MAX_ARCHIVED_LOG_COUNT>15</MAX_ARCHIVED_LOG_COUNT>
<MAX_LOG_FILE_SIZE_KB>15360</MAX_LOG_FILE_SIZE_KB>
<JSON_LOGGING>true</JSON_LOGGING>
<JSON_LOGGING>false</JSON_LOGGING>
</general>
<version>
<MSG_VERSION>1</MSG_VERSION>
Expand Down Expand Up @@ -57,19 +57,20 @@
</remotestorageDB>
<consensus>
<TOLERANCE_FRACTION>0.667</TOLERANCE_FRACTION>
<COMMIT_WINDOW_IN_SECONDS>10</COMMIT_WINDOW_IN_SECONDS>
<COMMIT_WINDOW_IN_SECONDS>50</COMMIT_WINDOW_IN_SECONDS>
<CONSENSUS_MSG_ORDER_BLOCK_WINDOW>10</CONSENSUS_MSG_ORDER_BLOCK_WINDOW>
<CONSENSUS_OBJECT_TIMEOUT>20</CONSENSUS_OBJECT_TIMEOUT>
<DS_NUM_CONSENSUS_SUBSETS>2</DS_NUM_CONSENSUS_SUBSETS>
<SHARD_NUM_CONSENSUS_SUBSETS>1</SHARD_NUM_CONSENSUS_SUBSETS>
<COMMIT_TOLERANCE_PERCENT>80</COMMIT_TOLERANCE_PERCENT>
<SUBSET0_RESPONSE_DELAY_IN_MS>1000</SUBSET0_RESPONSE_DELAY_IN_MS>
<COMMIT_TOLERANCE_PERCENT>69</COMMIT_TOLERANCE_PERCENT>
<SUBSET0_RESPONSE_DELAY_IN_MS>50</SUBSET0_RESPONSE_DELAY_IN_MS>
<LEADER_SELECTION_TARGET_DS>9422</LEADER_SELECTION_TARGET_DS>
</consensus>
<data_sharing>
<BROADCAST_TREEBASED_CLUSTER_MODE>true</BROADCAST_TREEBASED_CLUSTER_MODE>
<MULTICAST_CLUSTER_SIZE>10</MULTICAST_CLUSTER_SIZE>
<NUM_FORWARDED_BLOCK_RECEIVERS_PER_SHARD>10</NUM_FORWARDED_BLOCK_RECEIVERS_PER_SHARD>
<NUM_NODES_TO_SEND_LOOKUP>3</NUM_NODES_TO_SEND_LOOKUP>
<NUM_FORWARDED_BLOCK_RECEIVERS_PER_SHARD>11</NUM_FORWARDED_BLOCK_RECEIVERS_PER_SHARD>
<NUM_NODES_TO_SEND_LOOKUP>4</NUM_NODES_TO_SEND_LOOKUP>
<NUM_OF_TREEBASED_CHILD_CLUSTERS>5</NUM_OF_TREEBASED_CHILD_CLUSTERS>
<POW_PACKET_SENDERS>5</POW_PACKET_SENDERS>
<TX_SHARING_CLUSTER_SIZE>10</TX_SHARING_CLUSTER_SIZE>
Expand All @@ -83,36 +84,37 @@
<epoch_timing>
<DELAY_FIRSTXNEPOCH_IN_MS>2000</DELAY_FIRSTXNEPOCH_IN_MS>
<FETCHING_MISSING_DATA_TIMEOUT>10</FETCHING_MISSING_DATA_TIMEOUT>
<DS_ANNOUNCEMENT_DELAY_IN_MS>2000</DS_ANNOUNCEMENT_DELAY_IN_MS>
<DS_ANNOUNCEMENT_DELAY_IN_MS>7000</DS_ANNOUNCEMENT_DELAY_IN_MS>
<SHARD_ANNOUNCEMENT_DELAY_IN_MS>3000</SHARD_ANNOUNCEMENT_DELAY_IN_MS>
<LOOKUP_DELAY_SEND_TXNPACKET_IN_MS>500</LOOKUP_DELAY_SEND_TXNPACKET_IN_MS>
<MICROBLOCK_TIMEOUT>180</MICROBLOCK_TIMEOUT>
<NEW_NODE_SYNC_INTERVAL>2</NEW_NODE_SYNC_INTERVAL>
<POW_SUBMISSION_TIMEOUT>500</POW_SUBMISSION_TIMEOUT>
<ANNOUNCEMENT_DELAY_IN_MS>5000</ANNOUNCEMENT_DELAY_IN_MS>
<LOOKUP_DELAY_SEND_TXNPACKET_IN_MS>3000</LOOKUP_DELAY_SEND_TXNPACKET_IN_MS>
<MICROBLOCK_TIMEOUT>96</MICROBLOCK_TIMEOUT>
<NEW_NODE_SYNC_INTERVAL>45</NEW_NODE_SYNC_INTERVAL>
<POW_SUBMISSION_TIMEOUT>90</POW_SUBMISSION_TIMEOUT>
<POW_WINDOW_IN_SECONDS>60</POW_WINDOW_IN_SECONDS>
<POWPACKETSUBMISSION_WINDOW_IN_SECONDS>150</POWPACKETSUBMISSION_WINDOW_IN_SECONDS>
<POWPACKETSUBMISSION_WINDOW_IN_SECONDS>90</POWPACKETSUBMISSION_WINDOW_IN_SECONDS>
<RECOVERY_SYNC_TIMEOUT>5</RECOVERY_SYNC_TIMEOUT>
<TX_DISTRIBUTE_TIME_IN_MS>6000</TX_DISTRIBUTE_TIME_IN_MS>
<EXTRA_TX_DISTRIBUTE_TIME_IN_MS>7000</EXTRA_TX_DISTRIBUTE_TIME_IN_MS>
<DS_TX_PROCESSING_TIMEOUT>55</DS_TX_PROCESSING_TIMEOUT>
<NEW_LOOKUP_SYNC_DELAY_IN_SECONDS>5</NEW_LOOKUP_SYNC_DELAY_IN_SECONDS>
<TX_DISTRIBUTE_TIME_IN_MS>6000</TX_DISTRIBUTE_TIME_IN_MS>
<NEW_LOOKUP_SYNC_DELAY_IN_SECONDS>10</NEW_LOOKUP_SYNC_DELAY_IN_SECONDS>
<GETSHARD_TIMEOUT_IN_SECONDS>3</GETSHARD_TIMEOUT_IN_SECONDS>
<GETSTATEDELTAS_TIMEOUT_IN_SECONDS>5</GETSTATEDELTAS_TIMEOUT_IN_SECONDS>
<GETCOSIGREWARDS_TIMEOUT_IN_SECONDS>5</GETCOSIGREWARDS_TIMEOUT_IN_SECONDS>
<GETSTATEDELTAS_TIMEOUT_IN_SECONDS>5</GETSTATEDELTAS_TIMEOUT_IN_SECONDS>
<RETRY_REJOINING_TIMEOUT>10</RETRY_REJOINING_TIMEOUT>
<RETRY_GETSTATEDELTAS_COUNT>3</RETRY_GETSTATEDELTAS_COUNT>
<RETRY_COSIGREWARDS_COUNT>3</RETRY_COSIGREWARDS_COUNT>
<RETRY_GETSTATEDELTAS_COUNT>3</RETRY_GETSTATEDELTAS_COUNT>
<MAX_FETCHMISSINGMBS_NUM>12</MAX_FETCHMISSINGMBS_NUM>
<LAST_N_TXBLKS_TOCHECK_FOR_MISSINGMBS>10</LAST_N_TXBLKS_TOCHECK_FOR_MISSINGMBS>
<REMOVENODEFROMBLACKLIST_DELAY_IN_SECONDS>1</REMOVENODEFROMBLACKLIST_DELAY_IN_SECONDS>
<LAST_N_TXBLKS_TOCHECK_FOR_MISSINGMBS>10</LAST_N_TXBLKS_TOCHECK_FOR_MISSINGMBS>
</epoch_timing>
<gas>
<MIN_ETH_GAS>21000</MIN_ETH_GAS>
<DS_MICROBLOCK_GAS_LIMIT>500000</DS_MICROBLOCK_GAS_LIMIT>
<SHARD_MICROBLOCK_GAS_LIMIT>400000</SHARD_MICROBLOCK_GAS_LIMIT>
<DS_MICROBLOCK_GAS_LIMIT>200000</DS_MICROBLOCK_GAS_LIMIT>
<SHARD_MICROBLOCK_GAS_LIMIT>150000</SHARD_MICROBLOCK_GAS_LIMIT>
<CONTRACT_CREATE_GAS>50</CONTRACT_CREATE_GAS>
<CONTRACT_INVOKE_GAS>10</CONTRACT_INVOKE_GAS>
<NORMAL_TRAN_GAS>50</NORMAL_TRAN_GAS>
<NORMAL_TRAN_GAS>1</NORMAL_TRAN_GAS>
<GAS_CONGESTION_PERCENT>80</GAS_CONGESTION_PERCENT>
<UNFILLED_PERCENT_LOW>10</UNFILLED_PERCENT_LOW>
<UNFILLED_PERCENT_HIGH>70</UNFILLED_PERCENT_HIGH>
Expand All @@ -126,19 +128,19 @@
<LEGAL_GAS_PRICE_IP>127.0.0.1</LEGAL_GAS_PRICE_IP>
</gas>
<gossip>
<BROADCAST_GOSSIP_MODE>false</BROADCAST_GOSSIP_MODE>
<SEND_RESPONSE_FOR_LAZY_PUSH>false</SEND_RESPONSE_FOR_LAZY_PUSH>
<BROADCAST_GOSSIP_MODE>true</BROADCAST_GOSSIP_MODE>
<SEND_RESPONSE_FOR_LAZY_PUSH>true</SEND_RESPONSE_FOR_LAZY_PUSH>
<GOSSIP_CUSTOM_ROUNDS_SETTINGS>true</GOSSIP_CUSTOM_ROUNDS_SETTINGS>
<gossip_custom_rounds>
<MAX_ROUNDS_IN_BSTATE>2</MAX_ROUNDS_IN_BSTATE>
<MAX_ROUNDS_IN_CSTATE>3</MAX_ROUNDS_IN_CSTATE>
<MAX_TOTAL_ROUNDS>6</MAX_TOTAL_ROUNDS>
</gossip_custom_rounds>
<MAX_NEIGHBORS_PER_ROUND>10</MAX_NEIGHBORS_PER_ROUND>
<NUM_GOSSIP_RECEIVERS>10</NUM_GOSSIP_RECEIVERS>
<NUM_GOSSIP_RECEIVERS>5</NUM_GOSSIP_RECEIVERS>
<ROUND_TIME_IN_MS>1000</ROUND_TIME_IN_MS>
<SIMULATED_NETWORK_DELAY_IN_MS>0</SIMULATED_NETWORK_DELAY_IN_MS>
<KEEP_RAWMSG_FROM_LAST_N_ROUNDS>18</KEEP_RAWMSG_FROM_LAST_N_ROUNDS>
<KEEP_RAWMSG_FROM_LAST_N_ROUNDS>300</KEEP_RAWMSG_FROM_LAST_N_ROUNDS>
<SIGN_VERIFY_EMPTY_MSGTYP>true</SIGN_VERIFY_EMPTY_MSGTYP>
<SIGN_VERIFY_NONEMPTY_MSGTYP>true</SIGN_VERIFY_NONEMPTY_MSGTYP>
</gossip>
Expand Down Expand Up @@ -205,6 +207,10 @@
<LAUNCH_EVM_DAEMON>true</LAUNCH_EVM_DAEMON>
<!-- Use Continuation passing style -->
<ENABLE_CPS>true</ENABLE_CPS>
<pending_txn>
<NUM_TTL_PENDING_TXN>1</NUM_TTL_PENDING_TXN>
<NUM_TTL_DROPPED_TXN>5</NUM_TTL_DROPPED_TXN>
</pending_txn>
</jsonrpc>
<network_composition>
<!-- Shard size will be automatically calculated if COMM_SIZE = 0 -->
Expand All @@ -223,22 +229,22 @@
</network_composition>
<p2pcomm>
<BROADCAST_INTERVAL>60</BROADCAST_INTERVAL>
<BROADCAST_EXPIRY>600</BROADCAST_EXPIRY>
<BROADCAST_EXPIRY>300</BROADCAST_EXPIRY>
<FETCH_LOOKUP_MSG_MAX_RETRY>3</FETCH_LOOKUP_MSG_MAX_RETRY>
<MAXSENDMESSAGE>600</MAXSENDMESSAGE>
<MAXRECVMESSAGE>200</MAXRECVMESSAGE>
<MAXRETRYCONN>3</MAXRETRYCONN>
<MSGQUEUE_SIZE>128</MSGQUEUE_SIZE>
<MAXRETRYCONN>1</MAXRETRYCONN>
<MSGQUEUE_SIZE>420</MSGQUEUE_SIZE>
<PUMPMESSAGE_MILLISECONDS>1</PUMPMESSAGE_MILLISECONDS>
<SENDQUEUE_SIZE>128</SENDQUEUE_SIZE>
<MAX_GOSSIP_MSG_SIZE_IN_BYTES>5000000</MAX_GOSSIP_MSG_SIZE_IN_BYTES>
<SENDQUEUE_SIZE>420</SENDQUEUE_SIZE>
<MAX_GOSSIP_MSG_SIZE_IN_BYTES>10000000</MAX_GOSSIP_MSG_SIZE_IN_BYTES>
<MIN_READ_WATERMARK_IN_BYTES>0</MIN_READ_WATERMARK_IN_BYTES>
<MAX_READ_WATERMARK_IN_BYTES>10000000</MAX_READ_WATERMARK_IN_BYTES>
<MAX_READ_WATERMARK_IN_BYTES>120000000</MAX_READ_WATERMARK_IN_BYTES>
<BLACKLIST_NUM_TO_POP>5</BLACKLIST_NUM_TO_POP>
<MAX_PEER_CONNECTION>100</MAX_PEER_CONNECTION>
<MAX_PEER_CONNECTION_P2PSEED>20</MAX_PEER_CONNECTION_P2PSEED>
<MAX_WHITELISTREQ_LIMIT>5</MAX_WHITELISTREQ_LIMIT>
<SENDJOBPEERS_TIMEOUT>5</SENDJOBPEERS_TIMEOUT>
<SENDJOBPEERS_TIMEOUT>15</SENDJOBPEERS_TIMEOUT>
</p2pcomm>
<pow>
<FULL_DATASET_MINE>true</FULL_DATASET_MINE>
Expand Down Expand Up @@ -305,7 +311,7 @@
<INPUT_BLOCKCHAIN_JSON>input_blockchain.json</INPUT_BLOCKCHAIN_JSON>
<INPUT_MESSAGE_JSON>input_message.json</INPUT_MESSAGE_JSON>
<OUTPUT_JSON>output.json</OUTPUT_JSON>
<INPUT_CODE>input</INPUT_CODE>
<INPUT_CODE>input.scilla</INPUT_CODE>
<CONTRACT_FILE_EXTENSION>.scilla</CONTRACT_FILE_EXTENSION>
<LIBRARY_CODE_EXTENSION>.scillib</LIBRARY_CODE_EXTENSION>
<EXTLIB_FOLDER>scilla_libs</EXTLIB_FOLDER>
Expand Down Expand Up @@ -335,7 +341,7 @@
<TOTAL_GENESIS_TOKEN>12600000000000000000000</TOTAL_GENESIS_TOKEN>
<BASE_REWARD_IN_PERCENT>20</BASE_REWARD_IN_PERCENT>
<LOOKUP_REWARD_IN_PERCENT>40</LOOKUP_REWARD_IN_PERCENT>
<MAX_CODE_SIZE_IN_BYTES>76800</MAX_CODE_SIZE_IN_BYTES>
<MAX_CODE_SIZE_IN_BYTES>51200</MAX_CODE_SIZE_IN_BYTES>
<MAX_CONTRACT_EDGES>20</MAX_CONTRACT_EDGES>
<SCILLA_CHECKER_INVOKE_GAS>100</SCILLA_CHECKER_INVOKE_GAS>
<SCILLA_RUNNER_INVOKE_GAS>300</SCILLA_RUNNER_INVOKE_GAS>
Expand Down Expand Up @@ -428,7 +434,7 @@
<POST_VIEWCHANGE_BUFFER>10</POST_VIEWCHANGE_BUFFER>
<VIEWCHANGE_EXTRA_TIME>15</VIEWCHANGE_EXTRA_TIME>
<VIEWCHANGE_PRECHECK_TIME>10</VIEWCHANGE_PRECHECK_TIME>
<VIEWCHANGE_TIME>600</VIEWCHANGE_TIME>
<VIEWCHANGE_TIME>360</VIEWCHANGE_TIME>
</viewchange>
<!-- These are the genesis accounts -->
<accounts>
Expand Down
3 changes: 2 additions & 1 deletion daemon/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
add_executable(zilliqad ZilliqaDaemon.cpp ZilliqaUpdater.cpp)
add_executable(zilliqad ZilliqaDaemon.cpp ZilliqaUpdater.cpp
../tests/Network/Test_Rumours.cpp)

target_include_directories(zilliqad PRIVATE ${CMAKE_SOURCE_DIR}/src)
target_link_libraries (zilliqad
Expand Down
81 changes: 81 additions & 0 deletions scripts/config-man.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
#!/usr/bin/env python
# Copyright (C) 2019 Zilliqa
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

import click
from xml.etree import ElementTree as et

class XMLCombiner(object):
def __init__(self, filenames, new_file):
assert len(filenames) > 0, 'No filenames!'
# save all the roots, in order, to be processed later
self.roots = [et.parse(f).getroot() for f in filenames]
self.output = new_file

def combine(self):
for r in self.roots[1:]:
# combine each element with the first one, and update that
self.combine_element(self.roots[0], r)
# return the string representation
tree = et.ElementTree(self.roots[0])
tree.write(self.output, encoding="utf-8", xml_declaration=True)
return True

def combine_element(self, one, other):

mapping = {el.tag: el for el in one}
for el in other:
if len(el) == 0:
# Not nested
try:
# Update the text
mapping[el.tag].text = el.text
except KeyError:
# An element with this name is not in the mapping
mapping[el.tag] = el
# Add it
one.append(el)
else:
try:
# Recursively process the element, and update it in the same way
self.combine_element(mapping[el.tag], el)
except KeyError:
# Not in the mapping
mapping[el.tag] = el
# Just add it
one.append(el)


@click.command("merge-xml")
@click.option('--baseline', default='constants.xml', prompt='The baseline file',
help='The name of the master file probably constants.xml')
@click.option('--update', default='update.xml', prompt='The file with the updates',
help='The name of the update file probably just the difference from the baseline file')
@click.option('--output', default='constants_new.xml', prompt='The combined file',
help='The name of the output file probably constants_new.xml')
@click.pass_context

def setup(ctx, baseline, update, output):

source_xml_file = 'constants_v9.3.0rt1_latest.xml'
target_xml_file = 'test.xml'
new_file = 'constants_new.xml'

if XMLCombiner((baseline, update), output).combine() :
print('success')
else:
print('failed')


34 changes: 21 additions & 13 deletions scripts/localdev.py
Original file line number Diff line number Diff line change
Expand Up @@ -750,8 +750,8 @@ def write_testnet_configuration(config, zilliqa_image, testnet_name, isolated_se
os.path.join(ZILLIQA_DIR, "constants.xml"),
"--image", zilliqa_image,
"-n", "7",
"-s", "7",
"-d", "7",
"-s", "7",
"-l", "1",
"--guard", "5/0",
"--gentxn", "false",
Expand All @@ -766,11 +766,11 @@ def write_testnet_configuration(config, zilliqa_image, testnet_name, isolated_se
cmd = ["./bootstrap.py", testnet_name, "--clusters", "minikube", "--constants-from-file",
os.path.join(ZILLIQA_DIR, "constants.xml"),
"--image", zilliqa_image,
"-n", "15",
"-s", "15",
"-d", "15",
"-n", "30",
"-s", "30",
"-d", "30",
"-l", "1",
"--guard", "7/0",
"--guard", "17/0",
"--gentxn", "false",
"--multiplier-fanout", "1",
"--host-network", "false",
Expand All @@ -792,21 +792,30 @@ def write_testnet_configuration(config, zilliqa_image, testnet_name, isolated_se
constants_xml_target_path = os.path.join(TESTNET_DIR, f"{testnet_name}/configmap/constants.xml")
config_file = xml.dom.minidom.parse(constants_xml_target_path)

if desk:
print("Explicitly disabling all telemetry for desktop testing mode")
xml_replace_element(config_file, config_file.documentElement, "NUM_FINAL_BLOCK_PER_POW", "250")

xml_replace_element(config_file, config_file.documentElement, "DEBUG_LEVEL", "3")
xml_replace_element(config_file, config_file.documentElement, "BROADCAST_GOSSIP_MODE", "true")
xml_replace_element(config_file, config_file.documentElement, "METRIC_ZILLIQA_HOSTNAME", "0.0.0.0")
xml_replace_element(config_file, config_file.documentElement, "METRIC_ZILLIQA_PORT", "8090")
xml_replace_element(config_file, config_file.documentElement, "METRIC_ZILLIQA_PROVIDER", "PROMETHEUS")
xml_replace_element(config_file, config_file.documentElement, "METRIC_ZILLIQA_MASK", "ALL")
xml_replace_element(config_file, config_file.documentElement, "METRIC_ZILLIQA_PROVIDER", "NONE")
xml_replace_element(config_file, config_file.documentElement, "METRIC_ZILLIQA_MASK", "NONE")
xml_replace_element_if_exists(config_file, config_file.documentElement, "TRACE_ZILLIQA_HOSTNAME", "tempo.default.svc.cluster.local")
xml_replace_element_if_exists(config_file, config_file.documentElement, "TRACE_ZILLIQA_PORT", "4317")
xml_replace_element_if_exists(config_file, config_file.documentElement, "TRACE_ZILLIQA_PROVIDER", "NONE")
xml_replace_element_if_exists(config_file, config_file.documentElement, "TRACE_ZILLIQA_MASK", "NONE")
xml_replace_element_if_exists(config_file, config_file.documentElement, "COMMIT_WINDOW_IN_SECONDS", "40")
xml_replace_element_if_exists(config_file, config_file.documentElement, "DS_ANNOUNCEMENT_DELAY_IN_MS", "5")
xml_replace_element_if_exists(config_file, config_file.documentElement, "NUM_DS_ELECTION", "2")
xml_replace_element(config_file, config_file.documentElement, "NUM_FINAL_BLOCK_PER_POW", "250")
'''
xml_replace_element(config_file, config_file.documentElement, "GOSSIP_CUSTOM_ROUNDS_SETTINGS", "false")
xml_replace_element(config_file, config_file.documentElement, "SIGN_VERIFY_EMPTY_MSGTYP", "false")
xml_replace_element(config_file, config_file.documentElement, "SIGN_VERIFY_NONEMPTY_MSGTYP", "false")
xml_replace_element(config_file, config_file.documentElement, "MAX_NEIGHBORS_PER_ROUND", "3")
xml_replace_element(config_file, config_file.documentElement, "NUM_GOSSIP_RECEIVERS", "3")
'''
xml_replace_element(config_file, config_file.documentElement, "ROUND_TIME_IN_MS", "1000")



if chain_id is not None:
xml_replace_element(config_file, config_file.documentElement, "CHAIN_ID", chain_id)
output_config = config_file.toprettyxml(newl='')
Expand Down Expand Up @@ -906,7 +915,6 @@ def build_native_to_workspace(config):
pass
build_env = os.environ.copy()
build_env['SCILLA_REPO_ROOT'] = SCILLA_DIR
'''build_env['EXTRA_BUILD_PARAMS'] = "tests debug"'''
# Let's start off by building Scilla, in case it breaks.
run_or_die(config, ["make"], in_dir = SCILLA_DIR, env = build_env)
run_or_die(config, ["./build.sh"], in_dir = ZILLIQA_DIR)
Expand Down
Loading