This repository has been archived by the owner on Jun 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 265
ara/deterministic-timing-rework #1790
Draft
anthonyra
wants to merge
4
commits into
helium:master
Choose a base branch
from
anthonyra:ara/deterministic-timing-rework
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 2 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: | ||
// https://github.com/microsoft/vscode-dev-containers/tree/v0.159.0/containers/javascript-node | ||
{ | ||
"name": "Erlang", | ||
"build": { | ||
"dockerfile": "remote.Dockerfile", | ||
"args": { "VARIANT": "24.3.4.0-alpine" } | ||
}, | ||
|
||
// Set *default* container specific settings.json values on container create. | ||
"settings": { | ||
"terminal.integrated.shell.linux": "/bin/sh" | ||
}, | ||
|
||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"pgourlain.erlang" | ||
], | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [3000], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# [Choice] alpine,... | ||
ARG VARIANT="alpine" | ||
FROM erlang:${VARIANT} as deps-compiler | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
# Setup rebar diagnostics | ||
ARG REBAR_DIAGNOSTIC=0 | ||
ENV DIAGNOSTIC=${REBAR_DIAGNOSTIC} | ||
|
||
ENV CC=gcc CXX=g++ CFLAGS="-U__sun__" \ | ||
ERLANG_ROCKSDB_OPTS="-DWITH_BUNDLE_SNAPPY=ON -DWITH_BUNDLE_LZ4=ON" \ | ||
ERL_COMPILER_OPTIONS="[deterministic]" \ | ||
PATH="/root/.cargo/bin:$PATH" \ | ||
RUSTFLAGS="-C target-feature=-crt-static" | ||
|
||
# Install dependencies to build | ||
RUN apk add --no-cache --update \ | ||
autoconf automake bison build-base bzip2 cmake curl \ | ||
dbus-dev flex git gmp-dev libsodium-dev libtool linux-headers lz4 \ | ||
openssl-dev pkgconfig protoc sed tar wget bash parallel | ||
|
||
# Install Rust toolchain | ||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,3 +35,5 @@ helium_gateway | |
|
||
# gwmp-mux generated files | ||
gwmp-mux | ||
|
||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
%% -*- erlang -*- | ||
[ | ||
"config/sys.config", | ||
{lager, | ||
[ | ||
{log_root, "log"} | ||
]}, | ||
{libp2p, [ | ||
{use_dns_for_seeds, false} | ||
]}, | ||
{sibyl, | ||
[ | ||
{poc_mgr_mod, miner_poc_mgr}, | ||
{poc_report_handler, miner_poc_report_handler} | ||
]}, | ||
{blockchain, | ||
[ | ||
{seed_dns_cname, ""}, | ||
{similarity_time_diff_mins, 30}, | ||
{random_peer_pred, fun miner_util:true_predicate/1}, | ||
{ip_confirmation_host, ""}, | ||
{enable_nat, false}, | ||
{gossip_version, 1}, | ||
{testing, true}, | ||
{honor_quick_sync, false}, | ||
{listen_addresses, ["/ip4/0.0.0.0/tcp/0"]}, | ||
{key, undefined}, | ||
{num_consensus_members, 4}, | ||
{base_dir, "data"}, | ||
{seed_nodes, ""}, | ||
{seed_node_dns, ""}, | ||
{peerbook_update_interval, 60000}, | ||
{peerbook_allow_rfc1918, true}, | ||
{peer_cache_timeout, 20000}, | ||
{sync_cooldown_time, 1}, | ||
{skewed_sync_cooldown_time, 1}, | ||
{blocks_to_protect_from_gc, 80} | ||
]}, | ||
{miner, | ||
[ | ||
{denylist_keys, undefined}, | ||
{mode, validator}, | ||
{jsonrpc_port, 0}, | ||
{use_ebus, false}, | ||
{block_time, 60000}, | ||
{election_interval, 30}, | ||
{dkg_stop_timeout, 15000}, | ||
{write_failed_txns, true}, | ||
{radio_device, undefined}, | ||
{stabilization_period, 2000}, | ||
%% dont perform regionalised checks in test envs | ||
%% we only really need the params below if this file is changed to specify a radio device | ||
%% as without one miner_lora is not started | ||
%% including the params anyway in case someone needs it in this env | ||
{region_override, 'US915'} | ||
]} | ||
]. |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can't you add this file to .gitignore or something? or not add it to your commit?