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

One sided payments #2422

Merged
merged 359 commits into from Nov 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
359 commits
Select commit Hold shift + click to select a range
ea768d7
Preventing fee to be larger than the amount will also prevent spendin…
hansieodendaal Sep 23, 2020
6571bf6
Add reason peer needs to be banned
SWvheerden Sep 30, 2020
690b9ee
Merge #2250: [Merged Mining] Difficulty Check
stringhandler Sep 30, 2020
2d2e595
docs: add cargo test requirement to PR checklist
Oct 1, 2020
c432640
Merge #2273: docs: add cargo test requirement to PR checklist
stringhandler Oct 1, 2020
6147f73
Merge #2254: Removed tari_broadcast_channel and unused deps from tari…
stringhandler Oct 1, 2020
fb79f94
Merge #2262: Preventing fee to be larger than the amount will also pr…
stringhandler Oct 1, 2020
4514183
Merge #2266: Fix Name collision in types.proto
stringhandler Oct 1, 2020
3b14bb7
Remove sqrt from achieved difficulty
stringhandler Sep 18, 2020
57655b2
Merge #2269: Added ncurses dev dependency
stringhandler Oct 1, 2020
bb56303
DHT network discovery (peer syncing)
sdbondi Sep 4, 2020
62ece27
Merge #2190: Remove sqrt from achieved difficulty
stringhandler Oct 1, 2020
c9197d6
Merge #2252: DHT network discovery (peer syncing)
stringhandler Oct 1, 2020
63121b7
Merge #2272: Add reason peer needs to be banned
stringhandler Oct 1, 2020
52493c3
Add migration to peer db
SWvheerden Oct 1, 2020
0f8e13e
Quick fix for compile error caused by complex feature flag usage
sdbondi Oct 1, 2020
0f49988
Merge #2275: Add migration to peer db
stringhandler Oct 1, 2020
bfa6df1
Merge #2277: Quick fix for compile error caused by complex feature fl…
stringhandler Oct 1, 2020
e7ca658
Add examples for Service Framework
philipr-za Oct 1, 2020
aa31817
Implement STXO validation in the wallet’s Output Manager Service
philipr-za Oct 1, 2020
008fb11
Fix block sync
SWvheerden Oct 1, 2020
d876dec
Compile failure fixes
sdbondi Oct 1, 2020
b9845d7
Merge #2279: Compile failure fixes
stringhandler Oct 1, 2020
ec842dd
Merge #2278: Fix block sync
stringhandler Oct 1, 2020
0e33a72
Merge #2264: Implement STXO validation in the wallet’s Output Manager…
stringhandler Oct 1, 2020
a9f83d3
fix for quotes in key in block chain
SWvheerden Oct 1, 2020
336b0e3
Update `test_transaction_cancellation_sqlite_db` to track down CI fla…
philipr-za Oct 2, 2020
366853e
Handle runtime error by retrying dial peer.
hansieodendaal Oct 1, 2020
ce0630a
Merge #2282: Handle runtime error by retrying dial
stringhandler Oct 2, 2020
912ab13
Merge #2281: fix for quotes in key in block chain
stringhandler Oct 2, 2020
1d9cee0
Fix target difficulty for block 1 on rincewind
stringhandler Oct 2, 2020
68a4a4a
Merge #2276: Add examples for Service Framework
stringhandler Oct 2, 2020
6f03175
Merge #2283: Update `test_transaction_cancellation_sqlite_db` to trac…
stringhandler Oct 2, 2020
f16cfdd
add peer banned reason to display
SWvheerden Oct 2, 2020
613bf92
cache orphan pool results in memory
SWvheerden Oct 2, 2020
ab2fab9
Fix stack overflow on `test_store_and_forward_send_tx` test
philipr-za Oct 2, 2020
e04d9cc
Merge #2285: add peer banned reason to display
stringhandler Oct 2, 2020
8187ebb
Merge #2284: Fix target difficulty for block 1 on rincewind
stringhandler Oct 2, 2020
0398b68
Merge #2286: Fix stack overflow on `test_store_and_forward_send_tx` test
stringhandler Oct 2, 2020
4551d15
Refactor basenode/wallet/p2p initialization
sdbondi Oct 1, 2020
0071d4a
Merge #2287: Cache orphan pool results in memory
stringhandler Oct 2, 2020
0365845
Merge #2280: Refactor basenode/wallet/p2p initialization
stringhandler Oct 2, 2020
f41e46c
Clean up all the remaining clippy warnings
philipr-za Oct 2, 2020
22da187
Merge #2288: Clean up all the remaining clippy warnings
stringhandler Oct 2, 2020
1e54a02
Improve Closest broadcast strategy and use it for saf txn broadcast
sdbondi Oct 2, 2020
69380e0
Merge #2290: Improve Closest broadcast strategy and use it for saf tx…
stringhandler Oct 2, 2020
fbf42ba
New commit, added specific log targets for specific messages
hansieodendaal Sep 30, 2020
bfe3740
Improve TXO validation and broadcast and transaction protocol restart…
hansieodendaal Oct 4, 2020
653b838
Prevent tari_app_grpc rebuild on evvery build
sdbondi Oct 5, 2020
683d64e
Improve display of Difficulty
Oct 5, 2020
b4ae7c7
Fix max block interval
SWvheerden Oct 5, 2020
999611e
Merge #2297: Fix max block interval
stringhandler Oct 5, 2020
6bc7db6
Merge #2296: Improve display of Difficulty
stringhandler Oct 5, 2020
32bbbe9
Merge #2294: New commit, added specific log targets for specific mess…
stringhandler Oct 5, 2020
b91d56e
Merge #2293: Prevent tari_app_grpc rebuild on evvery build
stringhandler Oct 5, 2020
8292c02
Merge #2292: Improve TXO validation and broadcast ....
stringhandler Oct 5, 2020
5ee511b
Mempool RPC service
sdbondi Oct 1, 2020
56bd000
Merge #2301: Mempool RPC service
stringhandler Oct 6, 2020
4f784cd
Put in temp fix for monero big_endian-little_endian issue
SWvheerden Oct 6, 2020
e8d4bf1
Merge #2304: Put in temp fix for monero big_endian-little_endian issue
stringhandler Oct 6, 2020
3a86158
Added algo split for pow
SWvheerden Oct 6, 2020
f7a13eb
Added new regression tests for `Invalid coinbase in body`
hansieodendaal Oct 6, 2020
3d32d77
Merge #2231: Implement algo split as hashmap of timestamps
stringhandler Oct 6, 2020
b7d4a59
DHT RPC get_peers returns all peers and "on connect" mode for Network…
sdbondi Oct 6, 2020
9e3112b
Removed pretty table dev dependency
sdbondi Oct 6, 2020
b1a7a1e
Allow for versions greater than 9
Krakaw Oct 7, 2020
37e199e
Integrate connectivity manager for Liveness service
sdbondi Oct 7, 2020
435c5b6
Added `unban-all-peers` command
sdbondi Oct 7, 2020
2360d0e
Merge #2310: Added `unban-all-peers` command
stringhandler Oct 7, 2020
dfdf4eb
Merge #2308: Allow for versions greater than 9
stringhandler Oct 7, 2020
591e319
Add list-banned-peers command to base node
Oct 7, 2020
cb278d4
Adds in a trait for use by emission curve
SWvheerden Oct 7, 2020
5102f57
Merge #2312: Add list-banned-peers command to base node
stringhandler Oct 7, 2020
70e9f28
Merge #2246: Adds in a trait for use by emission curve
stringhandler Oct 7, 2020
6f4f1bc
Merge #2306: DHT RPC get_peers returns all peers and "on connect" mod…
stringhandler Oct 7, 2020
093d26e
Merge #2307: Removed pretty table dev dependency
stringhandler Oct 7, 2020
d4ae770
Merge #2309: Integrate connectivity manager for Liveness service
stringhandler Oct 7, 2020
8da356d
Add sha3 as pow option
SWvheerden Oct 8, 2020
377daf2
Remove banned or disconnected peers from chain metadata round
sdbondi Oct 8, 2020
c3c78cf
Add meta_data field to peer
SWvheerden Oct 8, 2020
faa6187
Merge #2156: Add sha3 as pow option
stringhandler Oct 8, 2020
5529104
Add recovery mode
SWvheerden Oct 7, 2020
53ae8c6
Merge #2214: Add recovery mode
stringhandler Oct 8, 2020
127d1a9
Merge #2305: Added new regression tests for `Invalid coinbase in body`
stringhandler Oct 8, 2020
018abd4
Merge #2316: Add meta_data field to peer
stringhandler Oct 8, 2020
c3d134e
Add chain tip tracking of all peers
SWvheerden Oct 9, 2020
e756ecb
Add missing connecivity handle for state machine tests
sdbondi Oct 9, 2020
51f2925
Merge #2320: Add missing connecivity handle for state machine tests
stringhandler Oct 9, 2020
e86ccc0
Merge #2314: Remove banned or disconnected peers from chain metadata …
stringhandler Oct 9, 2020
1e2c141
Merge #2318: Add chain tip tracking of all peers
stringhandler Oct 9, 2020
c8c5b41
Added DNS seed resolver module
sdbondi Oct 8, 2020
c256b94
Detecting bootstrap based on accumulated difficulty comparison is not…
hansieodendaal Oct 8, 2020
f123fbe
Fix incorrect handle await in base_node state machine
SWvheerden Oct 9, 2020
4a56e1a
Fix incorrect handle await in base_node state machine (#2323)
sdbondi Oct 9, 2020
4573de0
Base node shuts down cleanly
sdbondi Oct 9, 2020
c56f4a8
Merge: Base node shuts down cleanly
stringhandler Oct 9, 2020
736c4b6
Improvements for tie breaking comms, connection manager cleanup
sdbondi Oct 7, 2020
5f151ab
Merge #2317: Add resilient bootstrap detection
stringhandler Oct 12, 2020
114dac9
Peer db migrations must be incremental
sdbondi Oct 12, 2020
b834523
Merge #2328: Peer db migrations must be incremental
stringhandler Oct 12, 2020
3667c22
This log message only needs to be written once to the log file, not w…
hansieodendaal Oct 12, 2020
ce5d69d
Merge #2322: Improvements for tie breaking comms, connection manager …
stringhandler Oct 12, 2020
4b3f79a
Merge #2327: Move log message outside waiting loop
stringhandler Oct 12, 2020
e112874
Release v0.5.6, v0.16.6, v0.2.7
stringhandler Oct 12, 2020
7939876
Fix off by one height error in target difficulty
stringhandler Oct 13, 2020
df6092b
Merge #2333: Fix off by one height error in target difficulty
stringhandler Oct 13, 2020
646fc95
Fix target_diff Calculation
SWvheerden Oct 13, 2020
be105d3
Revert "Fix off by one height error in target difficulty"
stringhandler Oct 13, 2020
4bafaa6
Merge #2335: Fix target_diff Calculation
stringhandler Oct 13, 2020
5bffcf4
Check that advertised difficulty matches actual chain difficulty
sdbondi Oct 13, 2020
b6c4b94
Release v0.5.7, v0.2.7
stringhandler Oct 14, 2020
9dd2c47
Console Wallet Automation for send and make-it-rain
Sep 30, 2020
8a91842
Merge #2291: Console Wallet Automation for send and make-it-rain
stringhandler Oct 14, 2020
ce954df
Clean out orphan database at startup and/or sync
hansieodendaal Oct 6, 2020
b100916
Small refactor of `fetch_headers`
sdbondi Oct 14, 2020
ff52ad6
Expose latency for last call for client RPC connections
sdbondi Oct 14, 2020
0b57984
Merge #2334: Check that advertised difficulty matches actual chain di…
stringhandler Oct 16, 2020
34e1e9f
Add node.js integration tests
stringhandler Oct 14, 2020
ee75f36
Merge #2319: Added DNS seed resolver module
stringhandler Oct 16, 2020
b17bd1d
Refactoring to remove Arc<RwLock<>> from Wallet
Oct 13, 2020
5046439
Change Tor archive location for Windows install
hansieodendaal Oct 16, 2020
c88baf4
Merge #2338: Small refactor of `fetch_headers`
stringhandler Oct 16, 2020
485f780
Merge #2343: Refactoring to remove Arc<RwLock<>> from Wallet
stringhandler Oct 16, 2020
fc0589f
Merge #2345: Change Tor archive location for Windows install
stringhandler Oct 16, 2020
9b14534
Merge #2339: Add node.js integration tests
stringhandler Oct 16, 2020
f204867
Merge #2340: Expose latency for last call for client RPC connections
stringhandler Oct 16, 2020
6a87c55
Update TUI Transaction listing and Contact management
philipr-za Oct 16, 2020
ae5bb0c
Merge #2325: Clean out orphan database at startup and/or sync
stringhandler Oct 16, 2020
e93f550
Merge #2337: Update TUI Transaction listing and Contact management
stringhandler Oct 16, 2020
bf6acbd
Add shutdown triggers after wallet refactoring
Oct 16, 2020
ef7396f
Merge #2347: Add shutdown triggers after wallet refactoring
stringhandler Oct 16, 2020
e4bb8a7
Migrate to dirs-next
Oct 18, 2020
a1f9e03
Implement transaction sending and event based updating to TUI app
philipr-za Oct 18, 2020
fb6afce
Merge #2350: Migrate to dirs-next
stringhandler Oct 19, 2020
5dd6a08
Merge #2351: Implement transaction sending and event based updating t…
stringhandler Oct 19, 2020
0b3fe43
v0.5.8, v0.2.9, v0.16.7
stringhandler Oct 19, 2020
84017c4
Fix transaction service bug with tx send/receive cancellation
philipr-za Oct 20, 2020
0b18ec7
Display connected peers in TUI
philipr-za Oct 20, 2020
833a577
Return errors from inbound base node handler
stringhandler Oct 20, 2020
1b1afbb
Merge #2357: Return errors from inbound base node handler
stringhandler Oct 20, 2020
18f76c4
Set port + 1 for base node wallet in TCP mode
sdbondi Oct 20, 2020
690f138
Fix features to build FFI
stringhandler Oct 20, 2020
4237177
Merge #2359: Set port + 1 for base node wallet in TCP mode
stringhandler Oct 20, 2020
f75e927
Remove DhtJoin reply and only send join when node comes online
sdbondi Oct 20, 2020
f378ce3
Add a client key-value store to the wallet and wallet_ffi
philipr-za Oct 21, 2020
ca66ab0
Merge #2361: Remove DhtJoin reply and only send join when node comes …
stringhandler Oct 21, 2020
8621db5
Merge #2360: Fix features to build FFI
stringhandler Oct 21, 2020
5bd4660
Revert change to fetch_mmr_nodes from #2357
Oct 21, 2020
628d7ac
cargo-fmt
Oct 21, 2020
a12dba6
Merge #2365: cargo-fmt
stringhandler Oct 21, 2020
c0e893c
Merge #2364: Revert change to fetch_mmr_nodes from #2357
stringhandler Oct 21, 2020
8390201
Reduce base node service request timeout
stringhandler Oct 21, 2020
239dcb8
Simplify and improve thread config
sdbondi Oct 21, 2020
4b65189
Merge #2367: Simplify and improve thread config
stringhandler Oct 21, 2020
11e8953
Merge #2368: Reduce base node service request timeout
stringhandler Oct 21, 2020
169a94c
Removed floating point curve
SWvheerden Oct 21, 2020
211c3a8
remove genesis offset
SWvheerden Oct 21, 2020
d4e0732
Removed difficulty hack in monero_rx
StriderDM Oct 22, 2020
a202b3c
remove linked_kernel field
SWvheerden Oct 22, 2020
77cc6bf
Removed unused variable.
StriderDM Oct 22, 2020
e7077d3
remove metadata field from kernel
SWvheerden Oct 22, 2020
c8639b0
Increase short term ban duration
stringhandler Oct 22, 2020
13aa875
Various improvements to network discovery
sdbondi Oct 22, 2020
0f63738
Merge #2372: Increase short term ban duration
stringhandler Oct 22, 2020
cc0b37c
Clean up errors in DHT pipeline
sdbondi Oct 21, 2020
52e3426
Merge #2362: Clean up errors in DHT pipeline
stringhandler Oct 22, 2020
fd2dadd
Merge #2373: Various improvements to network discovery
stringhandler Oct 22, 2020
98e6cbf
Merge #2363: Add a client key-value store to the wallet and wallet_ffi
stringhandler Oct 22, 2020
9fe0003
V0.5.9, v0.2.10, v0.16.8
stringhandler Oct 22, 2020
5235a42
Implement pending transaction cancellation in the TUI app
philipr-za Oct 22, 2020
6265be0
Remove cyclic ban if online
stringhandler Oct 22, 2020
f158050
Bug fix for offline connectivity state
sdbondi Oct 23, 2020
cd7eb43
Merge #2376: Bug fix for offline connectivity state
stringhandler Oct 23, 2020
c9a94b9
Merge #2375: Remove cyclic ban if online
stringhandler Oct 23, 2020
6a8f7eb
Fix for network discovery state machine spin loop
sdbondi Oct 23, 2020
15dc012
Add faucet kernel
SWvheerden Oct 23, 2020
a495c98
Merge #2378: Fix for network discovery state machine spin loop
stringhandler Oct 23, 2020
8e64d4b
Removed floating point curve (#2366)
stringhandler Oct 23, 2020
dd2cea8
Add config option to disable wallet in Base Node
philipr-za Oct 23, 2020
75151cd
change accumulated difficulty to use the difficulty as just squared
SWvheerden Oct 23, 2020
95b2852
Add ridcully config
SWvheerden Oct 23, 2020
eda40f4
Base node block sync RPC service
sdbondi Oct 21, 2020
23d67d6
Merge #2354: Fix transaction service bug with tx send/receive cancell…
stringhandler Oct 26, 2020
95ceee5
Merge #2348: Base node block sync RPC service
stringhandler Oct 26, 2020
ba0c9cf
Merge #2353: Display connected peers in TUI
stringhandler Oct 26, 2020
06988c1
Merge #2374: Implement pending transaction cancellation in the TUI app
stringhandler Oct 26, 2020
10d3299
Revert change to fetch blocks utxos txos (#2357)
hansieodendaal Oct 26, 2020
f041d9e
Merge #2380: Change accumulated difficulty to use the difficulty as j…
stringhandler Oct 26, 2020
3f029d8
Merge #2379: Add config option to disable wallet in Base Node
stringhandler Oct 26, 2020
fc2ce72
Add more integration tests
stringhandler Oct 26, 2020
99db800
Merge #2358: Add more integration tests
stringhandler Oct 26, 2020
f6c7917
Merge #2383: Revert change to fetch blocks utxos txos (#2357)
stringhandler Oct 26, 2020
74ad224
Merge #2381: Add ridcully config
stringhandler Oct 26, 2020
40e7f3b
Fix unit tests for `get_target_difficulty`
hansieodendaal Oct 26, 2020
88c7fee
Merge #2384: Fix unit tests for `get_target_difficulty`
stringhandler Oct 26, 2020
fef0ce2
Merge remote-tracking branch 'origin/development' into merge_dev
SWvheerden Oct 26, 2020
14604bf
merge conflicts
SWvheerden Oct 26, 2020
062235c
Merge #2386: Merge development
stringhandler Oct 26, 2020
4c8a3cf
Fix thread panic when getting non u128 total_diff
SWvheerden Oct 26, 2020
f385c36
Merge #2387: Fix thread panic when getting non u128 total_diff
stringhandler Oct 26, 2020
45925d8
Add ridcully config as default
SWvheerden Oct 26, 2020
9fe90a9
add temp timestamp
SWvheerden Oct 27, 2020
4320f4b
Merge #2388: Add ridcully config as default
stringhandler Oct 27, 2020
53ec2c9
Merge #2370: Removed difficulty hack in monero_rx
stringhandler Oct 27, 2020
1e0c379
Upgrade aes-gcm dependency in wallet
Oct 27, 2020
74be731
Merge #2391: Create Ridcully testnet
stringhandler Oct 27, 2020
0f3fd68
Remove rincewind from default toml files
SWvheerden Oct 27, 2020
6e8cdea
Remove crossbeam
sdbondi Oct 27, 2020
7901d7c
Update peer seed
SWvheerden Oct 27, 2020
3855f28
Merge #2394: Remove rincewind from default toml files
stringhandler Oct 27, 2020
993be3d
Merge #2394: Update peer seed
stringhandler Oct 27, 2020
cd1823a
Fix cargo fmt and clippy
SWvheerden Oct 27, 2020
c4a0547
Add automated stress test to base node wallet
hansieodendaal Oct 14, 2020
d118b20
Merge #2355: Add automated stress test to base node wallet
stringhandler Oct 27, 2020
9a1f8fb
Merge #2396: Fix cargo fmt and clippy
stringhandler Oct 27, 2020
f73899c
increase comms version
SWvheerden Oct 27, 2020
36e234b
Merge #2393: Increase comms version Fix clippy warnings
stringhandler Oct 27, 2020
ac91afa
v0.6.0, v0.2.11, v0.16.9
stringhandler Oct 27, 2020
135b791
Combine validation code to use same function in pruned and archive mode.
SWvheerden Oct 27, 2020
9b86f88
Hook up mempool sync (Regression fix)
sdbondi Oct 28, 2020
116d289
INFO log messages must be on a single line
CjS77 Oct 28, 2020
94e67a1
Add configurable BN service request timeouts
hansieodendaal Oct 22, 2020
6cb1dd5
Implement wallet base node service
Oct 22, 2020
708fd9f
Merge #2399: INFO log messages must be on a single line
stringhandler Oct 28, 2020
5a36b76
Merge #2371: Add configurable BN service request timeouts
stringhandler Oct 28, 2020
466065f
Merge #2398: Hook up mempool sync (Regression fix)
stringhandler Oct 28, 2020
e06673b
Merge #2395: Remove crossbeam
stringhandler Oct 28, 2020
c5072b5
Merge #2392: Upgrade aes-gcm dependency in wallet
stringhandler Oct 28, 2020
c5d9e29
Merge #2356: Combine validation code to use same function in pruned a…
stringhandler Oct 28, 2020
ec5704b
Add exclusive file locks to Wallet, Chain and Peer db’s
philipr-za Oct 28, 2020
91b7858
Update README.md
StriderDM Oct 29, 2020
e98de26
[ci] split build and test tasks on circle-ci
Oct 21, 2020
f5f4f1e
Update README.md
StriderDM Oct 29, 2020
0ac38c4
Update README.md
StriderDM Oct 29, 2020
afdc5c2
Implement daemon-mode in tari_base_node
StriderDM Oct 26, 2020
1364bf0
Review Comments
StriderDM Oct 28, 2020
98d8009
cargo-fmt
StriderDM Oct 28, 2020
3fa9094
Fix wallet conversion error for a valid tx status
Oct 30, 2020
22503f7
Merge #2408: Fix wallet conversion error for a valid tx status
stringhandler Oct 30, 2020
2b886df
Simplify automated stress test
hansieodendaal Oct 28, 2020
91bb10f
Fix preset config files
hansieodendaal Oct 27, 2020
87e40ea
Merge #2404: Update README.md
stringhandler Nov 2, 2020
0b4c56a
Merge #2405: [ci] split build and test tasks on circle-ci
stringhandler Nov 2, 2020
1a1c4b9
Merge #2403: Add exclusive file locks to Wallet, Chain and Peer db’s
stringhandler Nov 2, 2020
722d6df
Merge #2400: Implement wallet base node service
stringhandler Nov 2, 2020
e5f7842
Merge #2397: Fix preset config files
stringhandler Nov 2, 2020
69d6f5d
Merge #2407: Simplify automated stress test
stringhandler Nov 2, 2020
35de5b5
Merge #2383: Implement daemon-mode in tari_base_node
stringhandler Nov 2, 2020
f9d6125
Merge remote-tracking branch 'origin/development' into one-sided-paym…
SWvheerden Nov 4, 2020
ea8191b
merge conflicts
SWvheerden Nov 5, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
86 changes: 81 additions & 5 deletions .circleci/config.yml
Expand Up @@ -20,9 +20,6 @@ commands:
- restore_cache:
keys:
- v6-cargo-cache-{{arch}}-{{checksum "rust-version"}}-<<parameters.release>>-{{checksum "Cargo.lock"}}
- run:
name: Build the project
command: cargo build --all --all-features --jobs=3 <<#parameters.release>>--release<</parameters.release>>
- run:
name: Cargo fmt
command: |
Expand All @@ -37,6 +34,62 @@ commands:
- /usr/local/cargo/registry
- target
key: v6-cargo-cache-{{arch}}-{{checksum "rust-version"}}-<<parameters.release>>-{{checksum "Cargo.lock"}}
build:
description: Build
parameters:
release:
description: Set this to true to compile in release mode.
type: boolean
default: false
steps:
- run:
name: Calculate dependencies
command: |
rustc --version >rust-version
test -e Cargo.lock || cargo generate-lockfile
- restore_cache:
keys:
- v6-cargo-cache-{{arch}}-{{checksum "rust-version"}}-<<parameters.release>>-{{checksum "Cargo.lock"}}
- run:
name: Cargo fmt
command: |
TOOLCHAIN=$(cat rust-toolchain)
rustup component add --toolchain $TOOLCHAIN rustfmt
cargo fmt --all -- --check
- run:
name: Build
command: cargo build --all --all-features --jobs=3 <<#parameters.release>>--release<</parameters.release>>
- save_cache:
paths:
- /usr/local/cargo/registry
- target
key: v6-cargo-cache-{{arch}}-{{checksum "rust-version"}}-<<parameters.release>>-{{checksum "Cargo.lock"}}
clippy:
description: cargo clippy
steps:
- run:
name: Calculate dependencies
command: |
rustc --version >rust-version
test -e Cargo.lock || cargo generate-lockfile
- restore_cache:
keys:
- v6-cargo-cache-{{arch}}-{{checksum "rust-version"}}-{{checksum "Cargo.lock"}}
- run:
name: Cargo fmt
command: |
TOOLCHAIN=$(cat rust-toolchain)
rustup component add --toolchain $TOOLCHAIN rustfmt
cargo fmt --all -- --check
- run:
name: Run clippy
command: cargo clippy -- -D warnings
- save_cache:
paths:
- /usr/local/cargo/registry
- target
key: v6-cargo-cache-{{arch}}-{{checksum "rust-version"}}-{{checksum "Cargo.lock"}}


jobs:
test-docs:
Expand Down Expand Up @@ -64,6 +117,23 @@ jobs:
- test:
release: true

build-tari-release:
docker:
- image: *rust_image
resource_class: medium
steps:
- checkout
- build:
release: true

clippy:
docker:
- image: *rust_image
resource_class: medium
steps:
- checkout
- clippy

deploy-docs:
docker:
- image: quay.io/tarilabs/git-ssh-client:0.2-alpine
Expand Down Expand Up @@ -106,8 +176,6 @@ jobs:

echo "Published."



workflows:
version: 2
workflow:
Expand All @@ -122,7 +190,15 @@ workflows:
filters:
branches:
only: development
- build-tari-release:
filters:
branches:
ignore: gh-pages
- test-tari-release:
filters:
branches:
ignore: gh-pages
- clippy:
filters:
branches:
ignore: gh-pages
1 change: 1 addition & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Expand Up @@ -25,6 +25,7 @@
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
* [ ] I'm merging against the `development` branch.
* [ ] I ran `cargo-fmt --all` before pushing.
* [ ] I ran `cargo test` successfully before submitting my PR.
* [ ] I have squashed my commits into a single commit.
* [ ] My change requires a change to the documentation.
* [ ] I have updated the documentation accordingly.
Expand Down
20 changes: 17 additions & 3 deletions .github/workflows/base_node_binaries.yml
Expand Up @@ -3,7 +3,9 @@ name: Build Matrix of Binaries
on:
push:
tags:
- "v[0-9].[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+"
schedule:
- cron: '05 00 * * *'

env:
TBN_FILENAME: 'tari_base_node'
Expand Down Expand Up @@ -32,13 +34,25 @@ jobs:
- name: Checkout source code
uses: actions/checkout@v2

- name: Declare Global Variables
- name: Declare Global Variables 4 GHA ${{ github.event_name }}
id: vars
shell: bash
run: |
echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"

- name: Default Destination Folder
uses: allenevans/set-env@v1.0.0
with:
overwrite: true
S3DESTOVERRIDE: ''
- name: Scheduled Destination Folder Override
if: ${{ github.event_name == 'schedule' && github.event.schedule == '05 00 * * *' }}
uses: allenevans/set-env@v1.0.0
with:
overwrite: true
S3DESTOVERRIDE: 'daily/'

- name: Setup Rust toolchain
uses: actions-rs/toolchain@v1
with:
Expand Down Expand Up @@ -154,7 +168,7 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
SOURCE: '${{ github.workspace }}${{ env.TBN_DIST }}'
DEST_DIR: '${{ env.S3DESTDIR }}/'
DEST_DIR: '${{ env.S3DESTOVERRIDE }}${{ env.S3DESTDIR }}/'
S3CMD: 'cp'
S3OPTIONS: '--recursive'
# S3OPTIONS: '--recursive --exclude "*" --include "*.zip*"'
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Expand Up @@ -37,4 +37,6 @@ base_layer/wallet_ffi/build.config
/base_layer/wallet_ffi/logs/
base_layer/wallet_ffi/.cargo/config

keys.json
keys.json
node_modules
/integration_tests/temp