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

Release 1.5.0rc #2592

Closed
wants to merge 258 commits into from
Closed
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
258 commits
Select commit Hold shift + click to select a range
363dc8e
refector: move process rewards stats functionality to separate class
kstdl May 5, 2023
184a7a2
feat: add option to change rewards distribution frequency with hardfork
kstdl May 9, 2023
a2bfdee
feat: clean LOG.old* files on db start
MatusKysel May 12, 2023
21ef2c7
Merge pull request #2463 from Taraxa-project/rewards_stats
kstdl May 12, 2023
d964baf
chore: increase timers for more stable test runs
MatusKysel May 12, 2023
4bf032b
chore: rework how Host is destroyed
MatusKysel May 15, 2023
02765ac
chore: transaction pool overflow improvements
mfrankovi May 10, 2023
45ae577
Merge pull request #2473 from Taraxa-project/trx_overflow_improvement
mfrankovi May 15, 2023
3966cf3
Merge branch 'develop' into stabilize-test
MatusKysel May 15, 2023
dbc828b
Merge pull request #2476 from Taraxa-project/stabilize-test
MatusKysel May 15, 2023
09a5da1
chore: improve sync-gossip transition
mfrankovi Apr 12, 2023
e6133da
Merge pull request #2448 from Taraxa-project/sync_gossip_transition
mfrankovi May 16, 2023
0097aea
Merge branch 'develop' into cleaing-old-files
MatusKysel May 16, 2023
ef9eb47
Merge pull request #2475 from Taraxa-project/cleaing-old-files
MatusKysel May 16, 2023
57adfab
chore: remove check for existing trxs
MatusKysel May 16, 2023
73e281b
improvement to build process
rjonczy May 16, 2023
2247c91
fix to docker tags
rjonczy May 16, 2023
dfbb266
couple fixes
rjonczy May 16, 2023
e94057c
changed based image of builder
rjonczy May 16, 2023
905b504
feat: pass hardforks config to the go part
kstdl May 16, 2023
057374c
Merge pull request #2479 from Taraxa-project/builder/improvements-to-…
rjonczy May 17, 2023
14075b1
Merge branch 'develop' into hardforks_passing
kstdl May 17, 2023
8bb7f53
rename task name
rjonczy May 17, 2023
fbefdf4
Merge branch 'develop' into hardforks_passing
kstdl May 17, 2023
b873a78
Merge pull request #2477 from Taraxa-project/hardforks_passing
kstdl May 17, 2023
dca485b
chore: removes ERC20 mirroring from genesis
rattrap Apr 5, 2023
d086e39
chore: update evm
MatusKysel May 19, 2023
45bdbfd
Merge pull request #2484 from Taraxa-project/missing-commits-for-develop
MatusKysel May 19, 2023
6263539
Merge branch 'develop' into fix-db-rebuild
MatusKysel May 21, 2023
dc01f03
Merge pull request #2472 from Taraxa-project/fix-db-rebuild
MatusKysel May 21, 2023
b92ba1f
feat: accept decimal and hex as int value inputs
kstdl May 23, 2023
484b653
chore: syncing optimizations
mfrankovi May 16, 2023
6986fc0
Merge pull request #2481 from Taraxa-project/sycing_rc
mfrankovi May 23, 2023
cda0e16
chore: add v1 and v2 taraxa capabilities
JakubFornadel Apr 14, 2023
52a688f
chore: use optimized rlp format for votes syncing
JakubFornadel Apr 14, 2023
7b4ba5e
chore: use optimized votes rlp for PeriodData db storage as well as n…
JakubFornadel Apr 15, 2023
381b04f
fix tests
JakubFornadel Apr 18, 2023
3006b34
chore: send v1 period data rlp in v1 sync packet handler
JakubFornadel Apr 18, 2023
27c4731
chore: add period data db migration
JakubFornadel Apr 18, 2023
d9cc208
chore: minor refactor
JakubFornadel Apr 18, 2023
07a785e
chore: increase db minor version vs major
JakubFornadel Apr 19, 2023
4d634df
chore: log msg refactor
JakubFornadel Apr 19, 2023
54c15b1
...
JakubFornadel Apr 19, 2023
fa0534b
chore: fix tarcap creation
JakubFornadel Apr 24, 2023
0c2769f
c≈chore: partially support multiple capabilities throughout the codebase
JakubFornadel Apr 25, 2023
3ea20e0
chore: support multiple taraxa capabilities
JakubFornadel Apr 25, 2023
246969b
...
JakubFornadel Apr 26, 2023
b5bbc5e
chore: move threadpool to network folder
JakubFornadel Apr 26, 2023
f64526a
chore: separate taraxa capabilities and create new base class
JakubFornadel Apr 27, 2023
312bfce
chore: use the same threadpool for all taraxa capabilities
JakubFornadel Apr 28, 2023
8def6d9
chore: move periodic events from tarcap to network class
JakubFornadel May 2, 2023
6bfcc07
chore: fix tests after moving threadpool & periodic events from tarca…
JakubFornadel May 3, 2023
3db954c
save tarcaps in descending order
JakubFornadel May 4, 2023
5095ad4
use lambda function for registering packets handlers instead of class…
JakubFornadel May 5, 2023
b34045b
chore: fix rlp in period data migration
JakubFornadel May 9, 2023
9cceaed
chore: fix includes
JakubFornadel May 9, 2023
48edb9f
fix packets handlers inheritance issues
JakubFornadel May 10, 2023
a608cf1
different versions of handlers have different log channels names
JakubFornadel May 11, 2023
5bf26ae
resolved conflicts
JakubFornadel May 24, 2023
3029689
chore: fix period data trxs order
MatusKysel May 25, 2023
e1b589c
chore: change verification on syncing
MatusKysel May 25, 2023
24e31c4
chore: implement progress
MatusKysel May 25, 2023
3d63d95
chore: fix and cleanup batch after applying migration
MatusKysel May 25, 2023
25247f9
chore: fix printing progress
MatusKysel May 25, 2023
f3f8e58
refactor init of packets handlers loggers
JakubFornadel May 25, 2023
bbcb766
Merge pull request #2450 from Taraxa-project/issue-2438/optimize_votes
JakubFornadel May 25, 2023
9fff869
chore: add check for saving only when re-order happend
MatusKysel May 26, 2023
67bd4dc
chore: merge with develop
MatusKysel May 29, 2023
3f4c98a
chore: improve API call
MatusKysel May 29, 2023
086a021
chore: add migrate flag
MatusKysel May 29, 2023
79727ea
Merge pull request #2489 from Taraxa-project/transaction-reordering
MatusKysel May 29, 2023
28c9cae
Merge branch 'develop' into no-check-on-trxs
MatusKysel May 30, 2023
3c7b5c6
Merge pull request #2478 from Taraxa-project/no-check-on-trxs
MatusKysel May 30, 2023
0896a50
Merge branch 'develop' into accept_decimals
kstdl May 30, 2023
a95c229
chore: init storage loger as first object
MatusKysel May 31, 2023
b07b45e
chore: disable artifacts for circleci
MatusKysel May 31, 2023
f1f8a41
Merge pull request #2488 from Taraxa-project/accept_decimals
kstdl May 31, 2023
62919a0
chore: fix light node test
MatusKysel Jun 1, 2023
d1760eb
chore: reduce prune memory usage
mfrankovi Jun 1, 2023
325c24e
Merge pull request #2498 from Taraxa-project/prune_memory_opt
mfrankovi Jun 2, 2023
c30b785
Merge branch 'develop' into fix-light-node-test
MatusKysel Jun 5, 2023
10ccd58
Merge pull request #2497 from Taraxa-project/fix-light-node-test
MatusKysel Jun 5, 2023
e0b8a30
Merge branch 'develop' into fix-storage-logs
MatusKysel Jun 5, 2023
288c702
Merge pull request #2493 from Taraxa-project/fix-storage-logs
MatusKysel Jun 5, 2023
f2ca8ff
copy column before aplying migration
JakubFornadel May 31, 2023
9fb5a54
fix potential memory leaks realted to column copying
JakubFornadel Jun 2, 2023
09f3274
add DestroyColumnFamilyHandle in deleteColumnData
JakubFornadel Jun 2, 2023
e773d27
added check in replaceColumn
JakubFornadel Jun 2, 2023
dc36160
Merge pull request #2492 from Taraxa-project/copy_col_migration
JakubFornadel Jun 5, 2023
6887049
remove tests tha duplicate testing functionality from transfer_lot_of…
JakubFornadel Jun 2, 2023
2da0310
remove test_state
JakubFornadel Jun 2, 2023
a4e385e
replace dummy propagate_block test with real one
JakubFornadel Jun 2, 2023
fa13b07
Merge pull request #2499 from Taraxa-project/issue-2469/remove-test_sate
JakubFornadel Jun 5, 2023
52694fe
bugfix: do not ignor pbft size check on syncing
MatusKysel Jun 6, 2023
1f789c0
Merge pull request #2501 from Taraxa-project/fix-bug-in-sync-requesting
MatusKysel Jun 7, 2023
98ea42c
Merge branch 'develop' into disable-artifacts
MatusKysel Jun 8, 2023
760037e
Merge pull request #2494 from Taraxa-project/disable-artifacts
MatusKysel Jun 8, 2023
349a1e0
chore: add node addr to summary logs
MatusKysel Jun 8, 2023
4d30708
feat: add RPC methods to speed up indexing
kstdl Jun 5, 2023
5ff72c1
fix: reuse threadpool in transformToJsonParallel
kstdl Jun 5, 2023
a8b4c57
chore: improve performance of vote weight calculation
MatusKysel Jun 13, 2023
f46d3b2
Merge pull request #2500 from Taraxa-project/indexer_rpc_methods
kstdl Jun 14, 2023
8a81f6b
Merge branch 'develop' into master-temp
MatusKysel Jun 15, 2023
050af69
Merge pull request #2509 from Taraxa-project/master-temp
MatusKysel Jun 20, 2023
4f3ecce
Merge branch 'develop' into add-node-addr-to-logs
MatusKysel Jun 21, 2023
ce14f8b
chore:fix sync large pbft block test
mfrankovi Jun 20, 2023
791e86e
Merge pull request #2510 from Taraxa-project/large_block_test_fix
mfrankovi Jun 22, 2023
b6d0455
chore: optimize peer cache
mfrankovi Jun 14, 2023
86d9eaf
Merge pull request #2511 from Taraxa-project/cache_opt
mfrankovi Jun 22, 2023
9443a4f
Merge branch 'develop' into vote-verify-improvement
MatusKysel Jun 22, 2023
558725d
Merge pull request #2506 from Taraxa-project/vote-verify-improvement
MatusKysel Jun 22, 2023
0bfa3bf
Merge branch 'develop' into add-node-addr-to-logs
MatusKysel Jun 23, 2023
237197a
Merge pull request #2503 from Taraxa-project/add-node-addr-to-logs
MatusKysel Jun 23, 2023
46e2a76
fix: period data migration
mfrankovi Jun 28, 2023
f0d2500
Merge pull request #2512 from Taraxa-project/period_data_migration_fix
mfrankovi Jun 28, 2023
b65346f
chore: light node optimizations
mfrankovi Jun 27, 2023
49229f7
feat: add method to get cert votes
kstdl Jun 28, 2023
4ecf425
fix: move indexer methods to debug API
kstdl Jun 30, 2023
720d0c5
Merge pull request #2514 from Taraxa-project/light_node_dag_blocks
mfrankovi Jul 3, 2023
bffa6a1
Merge branch 'develop' into rpc_get_cert_votes
kstdl Jul 3, 2023
c643ab3
Merge pull request #2513 from Taraxa-project/rpc_get_cert_votes
kstdl Jul 5, 2023
356fbf3
implement getTotalDelegation function
JakubFornadel Jun 30, 2023
84b99d3
Merge pull request #2516 from Taraxa-project/issue-2515/get_total_del…
JakubFornadel Jul 6, 2023
359adbd
clean up code from test related code
JakubFornadel Jun 9, 2023
4d1f987
Merge pull request #2504 from Taraxa-project/issue-854/clean_up_tests…
JakubFornadel Jul 6, 2023
7ccbc0a
chore: correct error handling in debug API
MatusKysel Jul 12, 2023
5d00970
chore: add vrf keys to default genesis
MatusKysel Jul 12, 2023
72d8784
chore: modified errors for all APIs
MatusKysel Jul 12, 2023
a86c825
Merge pull request #2521 from Taraxa-project/debug-rpc-error-handling
MatusKysel Jul 13, 2023
25af4cb
chore:light node optimization
mfrankovi Jul 7, 2023
a59cd59
perf: remove final_chain_transaction_hashes_by_blk_number column and …
kstdl Jul 12, 2023
6a45aa9
Merge branch 'develop' into master-2-develop
MatusKysel Jul 13, 2023
ce52a36
Merge pull request #2519 from Taraxa-project/light_node_compact_opt
mfrankovi Jul 13, 2023
c837ce2
Merge branch 'develop' into master-2-develop
MatusKysel Jul 13, 2023
63da557
Merge pull request #2526 from Taraxa-project/master-2-develop
MatusKysel Jul 13, 2023
afb7d8c
chore: separates indexer ingress from node ingress
rattrap Jul 14, 2023
cad35f8
Merge pull request #2528 from Taraxa-project/feature/separates_indexe…
rattrap Jul 14, 2023
8dd562e
chore: bumps chart version and changelog
rattrap Jul 14, 2023
0e845c7
chore: remove entry only on same endpoint
MatusKysel Jul 14, 2023
56400b4
chore: readd bootnodes on 0 found nodes
MatusKysel Jul 14, 2023
6c23a05
Merge branch 'develop' into fix-p2p-issue
MatusKysel Jul 17, 2023
2d79c77
Merge pull request #2529 from Taraxa-project/fix-p2p-issue
MatusKysel Jul 17, 2023
8bbbfbd
fix: state root validation on syncing
mfrankovi Jul 13, 2023
53215ac
Merge pull request #2527 from Taraxa-project/syncing_pbft_sr_validation
mfrankovi Jul 18, 2023
7c47a59
chore: improve ping timeout handling on discovery
mfrankovi Jul 19, 2023
4b6a475
feat: check for config change and update logging config on change
kstdl Jul 17, 2023
9a19ff5
fix: failing tests because of missing config file path
kstdl Jul 17, 2023
581418f
feat: add pbftHash to graphql pbft block
kstdl Jul 20, 2023
b4d91df
chore(deps): bump aiohttp from 3.7.4.post0 to 3.8.5 in /for_devs
dependabot[bot] Jul 20, 2023
8c03cca
Merge pull request #2532 from Taraxa-project/discovery_ping_impr
mfrankovi Jul 21, 2023
1e4501a
chore: better approach on deleting node entries
MatusKysel Jul 24, 2023
1be3156
Revert "chore: better approach on deleting node entries"
MatusKysel Jul 24, 2023
ba2cd79
chore: better approach on deleting node entries
MatusKysel Jul 24, 2023
07a26b9
Merge branch 'develop' into dependabot/pip/for_devs/aiohttp-3.8.5
MatusKysel Jul 25, 2023
43cec36
Merge pull request #2534 from Taraxa-project/dependabot/pip/for_devs/…
MatusKysel Jul 25, 2023
79f2520
Merge branch 'develop' into new-p2p-handling
MatusKysel Jul 25, 2023
19ee893
Merge pull request #2535 from Taraxa-project/new-p2p-handling
MatusKysel Jul 25, 2023
ad84653
feat: handle batch requests via ws interface
MatusKysel Jul 25, 2023
0011895
Merge pull request #2536 from Taraxa-project/ws-batch-reqs
MatusKysel Jul 27, 2023
513c7d6
Merge branch 'develop' into graphql_pbft_block_hash
kstdl Jul 28, 2023
df85639
Merge pull request #2533 from Taraxa-project/graphql_pbft_block_hash
kstdl Jul 28, 2023
3983a03
Merge branch 'develop' into log_config_reload
kstdl Jul 28, 2023
afa8cce
Merge pull request #2530 from Taraxa-project/log_config_reload
kstdl Jul 28, 2023
048f4e9
Merge branch 'develop' into master-merge
MatusKysel Aug 4, 2023
37f7675
Merge pull request #2542 from Taraxa-project/master-merge
MatusKysel Aug 7, 2023
6f87e16
chore: improve light node history delete
mfrankovi Aug 8, 2023
42c180d
Merge pull request #2543 from Taraxa-project/period_trx_hashes
mfrankovi Aug 10, 2023
9b8e259
Merge branch 'develop' into master-merge
MatusKysel Aug 10, 2023
17464d1
Merge branch 'master' into master-merge
MatusKysel Aug 14, 2023
aede66e
Merge pull request #2546 from Taraxa-project/master-merge
MatusKysel Aug 14, 2023
6722e4e
chore: async clear light node history
mfrankovi Aug 16, 2023
5cbb8ae
chore: async clear light node history
mfrankovi Aug 16, 2023
571f40a
Merge pull request #2551 from Taraxa-project/light_node_async
mfrankovi Aug 16, 2023
e6c63e1
Merge branch 'develop' into master-2-develop
MatusKysel Aug 17, 2023
e35be9c
Merge pull request #2554 from Taraxa-project/master-2-develop
MatusKysel Aug 17, 2023
b33eb08
chore: add additional network logging
mfrankovi Aug 16, 2023
561d408
Merge pull request #2553 from Taraxa-project/net_dbg_summary_logs
mfrankovi Aug 17, 2023
55a0409
chore: allow dag resyncing after node is out of pbft sync
mfrankovi Aug 21, 2023
d0dc146
Merge pull request #2556 from Taraxa-project/dag_resync
mfrankovi Aug 23, 2023
6d2a745
chore: light node clearing on restart only
mfrankovi Aug 22, 2023
7258af5
Merge pull request #2559 from Taraxa-project/light_node_restart
mfrankovi Aug 24, 2023
4b4bdc8
chore: fix formating
MatusKysel Aug 24, 2023
b20a3a1
Merge pull request #2562 from Taraxa-project/master-2-develop
MatusKysel Aug 24, 2023
c75c754
chore: improve discovery ping handling
mfrankovi Aug 24, 2023
aeb79ef
chore: clean light node only on start
MatusKysel Aug 25, 2023
e575a47
chore: fix light node unit test
mfrankovi Aug 25, 2023
c18cd30
Merge pull request #2563 from Taraxa-project/light-node-fix
MatusKysel Aug 25, 2023
d9ca5a3
Merge branch 'develop' into node_table_ping_timeout
mfrankovi Aug 28, 2023
4d16906
Merge pull request #2560 from Taraxa-project/node_table_ping_timeout
mfrankovi Aug 28, 2023
96490f2
Merge branch 'develop' into master2dev
MatusKysel Aug 31, 2023
5993705
Merge pull request #2567 from Taraxa-project/master2dev
MatusKysel Aug 31, 2023
f855e0c
chore: light node size optimization
mfrankovi Aug 31, 2023
b65fc5c
Merge pull request #2566 from Taraxa-project/ln_fix_opt
mfrankovi Sep 5, 2023
3e6cf04
chore: update dependencies
MatusKysel Sep 18, 2023
3033ca9
chore: remove cppcheck warnings
MatusKysel Sep 18, 2023
803af1f
implement magnolia hardfork
JakubFornadel May 18, 2023
37517a9
aadded magnolia hf into devnet config
JakubFornadel May 23, 2023
b5f73b7
feat: implement hardfork to change fee rewards distribution
kstdl May 22, 2023
65cab40
chore: resolve discussion
kstdl Aug 3, 2023
6466957
add slashing config
JakubFornadel Aug 9, 2023
50c7852
added slashing config + updated evm
JakubFornadel Aug 13, 2023
d8fc747
post merge fixes
JakubFornadel Aug 16, 2023
5560dcc
adjust configs parameters
JakubFornadel Aug 17, 2023
6aebf8a
feat: implement prototype of slashing manager
MatusKysel Jul 26, 2023
0fdbbae
add C++ double voting test + update latest magnolia hf evm
JakubFornadel Aug 15, 2023
60ebe15
commit double voting proof when received non-unique vote through packets
JakubFornadel Aug 16, 2023
695d4f1
fix isUniqueVote function to allow 2 voted blocks only for second fin…
JakubFornadel Aug 16, 2023
5a88e30
commit double voting proof when vote insertion fails due to non-uniqu…
JakubFornadel Aug 16, 2023
62a597d
commit double voting proof only after magnolia hf block passed
JakubFornadel Aug 16, 2023
f052c5a
after merge fixes
JakubFornadel Aug 17, 2023
4b22eba
make slashing config part of magnolia hf config + improvements
JakubFornadel Aug 18, 2023
879665b
use simplified slashing contract
JakubFornadel Aug 23, 2023
7a16797
report malicious behaviour only if enabled in config + evm update
JakubFornadel Aug 24, 2023
b9c995e
chore: improve dag propose probability
mfrankovi Sep 19, 2023
9585f42
update evm
JakubFornadel Sep 20, 2023
1d8abd7
Merge pull request #2545 from Taraxa-project/magnolia_hardfork
mfrankovi Sep 22, 2023
3b6ea8c
chore: enable test for magnolia hf on devnet
mfrankovi Sep 22, 2023
98cc37e
Merge pull request #2572 from Taraxa-project/devnet_magnolia_hf_test
mfrankovi Sep 22, 2023
030bb48
Merge branch 'develop' into update-dependecies
MatusKysel Sep 27, 2023
dae755b
Merge pull request #2568 from Taraxa-project/update-dependecies
MatusKysel Sep 27, 2023
48e6c26
Merge branch 'develop' into master2dev
MatusKysel Sep 27, 2023
e301c3a
Merge pull request #2573 from Taraxa-project/master2dev
MatusKysel Sep 27, 2023
37ca8b9
Merge branch 'develop' into master2dev
MatusKysel Oct 2, 2023
e369a5d
Merge pull request #2578 from Taraxa-project/master2dev
MatusKysel Oct 3, 2023
bc58bf4
chore: implement new way of claiming all rewards
MatusKysel Sep 28, 2023
b8df3ee
chore: increase version and change devnet magnolia hf block
kstdl Oct 5, 2023
bdba3bc
Merge pull request #2574 from Taraxa-project/fix-claim-all-rewards
MatusKysel Oct 5, 2023
b36a7b4
chore: fix syncing of dag blocks
MatusKysel Oct 5, 2023
b47ea76
Merge pull request #2580 from Taraxa-project/fix-dag-syncing
MatusKysel Oct 6, 2023
47e83c5
chore: fix rewards stats saving
MatusKysel Oct 6, 2023
d43825a
Merge pull request #2581 from Taraxa-project/fix-reward-distribution
MatusKysel Oct 6, 2023
8bd1450
chore: jail updates
mfrankovi Oct 11, 2023
26156cf
Merge pull request #2582 from Taraxa-project/jail_upd
mfrankovi Oct 12, 2023
5608b12
chore: add test to check removal of jailed validator from total votes…
kstdl Oct 16, 2023
9a8eece
chore: fix rebuilding db
MatusKysel Oct 16, 2023
900d8b8
fixed broken test
MatusKysel Oct 17, 2023
7560ef4
chore: update submodule and fix final_chain_tests order
kstdl Oct 17, 2023
468909b
Merge pull request #2585 from Taraxa-project/remove_jailed_votes
kstdl Oct 17, 2023
4bb6580
Merge branch 'develop' into fix-rebuilding
MatusKysel Oct 17, 2023
c0b8115
Merge pull request #2586 from Taraxa-project/fix-rebuilding
MatusKysel Oct 17, 2023
bd5c12b
Merge remote-tracking branch 'origin/master' into master_to_develop
kstdl Oct 17, 2023
6d438ac
chore: remove unneeded reorderTransactions
kstdl Oct 17, 2023
0982c78
chore: change timestamp for the devnet
kstdl Oct 17, 2023
c28549c
Merge pull request #2588 from Taraxa-project/master_to_develop
MatusKysel Oct 17, 2023
82d73e3
fix: reward stats saving
mfrankovi Oct 18, 2023
baeee05
Merge pull request #2590 from Taraxa-project/rew_stats_fix
mfrankovi Oct 18, 2023
dda8c30
chore: fix max gas for slashing transactions
MatusKysel Oct 19, 2023
d0b213e
Merge pull request #2591 from Taraxa-project/fix-slashing-gas
MatusKysel Oct 20, 2023
74b18da
testnet magnolia HF
MatusKysel Oct 20, 2023
b458479
chore: update testnet hardfork block to 25 Oct
kstdl Oct 23, 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
151 changes: 114 additions & 37 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ orbs:
github-release: izumin5210/[email protected]
gcp-gcr: circleci/[email protected]
gcp-cli: circleci/[email protected]
docker-cache: cci-x/[email protected]
helm-release: taraxa/[email protected]

commands:
Expand Down Expand Up @@ -184,10 +183,10 @@ commands:
- run:
name: Cleanup PRNet IPs
command: |
if [[ $(gcloud compute addresses list --format json --project << parameters.project >> --filter="name~'prnet-boot-<< parameters.pr-name >>.*'" ) != "[]" ]];then
if [[ $(gcloud compute addresses list --format json --project << parameters.project >> --filter="name~'prnet-boot-<< parameters.pr-name >>.*'" ) != "[]" ]];then
gcloud compute addresses delete prnet-boot-<< parameters.pr-name >>-{1..3} --region << parameters.region >> --project << parameters.project >> --quiet
fi
if [[ $(gcloud compute addresses list --format json --project << parameters.project >> --filter="name~'prnet-rpc-<< parameters.pr-name >>.*'" ) != "[]" ]];then
if [[ $(gcloud compute addresses list --format json --project << parameters.project >> --filter="name~'prnet-rpc-<< parameters.pr-name >>.*'" ) != "[]" ]];then
gcloud compute addresses delete prnet-rpc-<< parameters.pr-name >>-{1..3} --region << parameters.region >> --project << parameters.project >> --quiet
fi
when: << parameters.when >>
Expand Down Expand Up @@ -216,7 +215,7 @@ commands:
echo -n "<< parameters.kubeconfig >>" | base64 --decode > $HOME/.kube/config
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
sudo cp kubectl /usr/local/bin
sudo cp kubectl /usr/local/bin
sudo chmod +x /usr/local/bin/kubectl
when: << parameters.when >>

Expand Down Expand Up @@ -306,7 +305,7 @@ commands:
echo "waiting.. for all resources to be deleted"
echo ${GETALL}
sleep 10
fi
fi
done
if [ $i -eq 50 ];then
echo "Exiting after 500 seconds not all resources may have cleaned up"
Expand All @@ -320,47 +319,55 @@ commands:
steps:
- run:
name: Prepare env variables
command: |
command: |
echo "export PR=$( [[ -z ${CIRCLE_PULL_REQUEST+x} ]] && echo false || echo $(basename ${CIRCLE_PULL_REQUEST}) )" >> $BASH_ENV
export PR=$( [[ -z ${CIRCLE_PULL_REQUEST+x} ]] && echo false || echo $(basename ${CIRCLE_PULL_REQUEST}) )
echo "export SHORT_GIT_HASH=$(echo $CIRCLE_SHA1 | cut -c -7)" >> $BASH_ENV
echo "export VERSION=$(git rev-parse --short HEAD)" >> $BASH_ENV
echo "export HELM_TEST_NAME=pr-${PR}" >> $BASH_ENV
echo "export DOCKER_BRANCH_TAG=$(./scripts/docker_tag_from_branch.sh $CIRCLE_BRANCH)" >> $BASH_ENV
echo "export GCP_IMAGE=gcr.io/${GOOGLE_PROJECT_ID}/${IMAGE}" >> $BASH_ENV
- run:
name: Clean old Images if disk available is lower than 15G
command: |
for time in 120 96 72 48 24 12 6 3 1 0
do
if [ $(df /var/lib/docker --block-size=1073741824 --output=avail|grep -v Avail) -lt 15 ]; then
df /var/lib/docker --block-size=1073741824 --output=avail
echo "Pruning images older than ${time}h"
docker image prune -a --force --filter "until=${time}h"
fi
done

build:
description: Builds docker images
description: Builds docker image (${IMAGE})
steps:
- run:
name: Build builder image
command: |
docker build -t ${IMAGE}:${VERSION} --target builder .
- run:
name: Checkout Submodules
command: |
git submodule sync
git submodule update --init --recursive --jobs 8
- run:
name: Build ctest image
name: Compile and build binaries
command: |
docker build -t ${IMAGE}-ctest:${VERSION} --target build .
- run:
name: Build taraxad image
name: Build final Docker image
command: |
docker build -t ${IMAGE}:${VERSION} .

build_builder:
description: Builds docker image (${IMAGE})
steps:
- run:
name: Build builder image
command: |
docker build -t ${IMAGE}:${VERSION} -f builder.Dockerfile .

tag_builder:
description: Tags docker images (builder)
steps:
- run:
name: Tag images
command: |

if [[ ${CIRCLE_TAG} != "" ]];then
TAG=$(echo ${CIRCLE_TAG} | sed 's/^builder-//g')
docker tag ${IMAGE}:${VERSION} taraxa/${IMAGE}:${TAG}
docker tag ${IMAGE}:${VERSION} taraxa/${IMAGE}:latest
else
docker tag ${IMAGE}:${VERSION} taraxa/${IMAGE}:${VERSION}
fi

tag:
description: Tags docker images
steps:
Expand Down Expand Up @@ -504,24 +511,24 @@ commands:
if [ ! -z "$(docker network list --format '{{.Name}}' | grep -o smoketest-${VERSION})" ]; then
docker network rm smoketest-${VERSION} >/dev/null;
fi

docker network create --driver=bridge \
smoketest-${VERSION}

docker run -d\
--name smoketest-${VERSION} \
--net smoketest-${VERSION} \
${IMAGE}:${VERSION} \
single

mkdir -p $PWD/test_build-d/

sleep 30

echo "--- Logs from container ---"
docker logs smoketest-${VERSION}
echo "--- Logs from container ---"

http_code=$(docker run --rm -v $PWD/test_build-d:/data \
--net smoketest-${VERSION} \
byrnedo/alpine-curl \
Expand All @@ -540,7 +547,7 @@ commands:
"secret": "3800b2875669d9b2053c1aff9224ecfdc411423aac5b5a73d7a45ced1c3b9dcd"
}]
}')

cat $PWD/test_build-d/http.out || true
if [[ $http_code -eq 200 ]] ; then
exit 0
Expand Down Expand Up @@ -701,9 +708,34 @@ jobs:
- test
- tag
- push_gcr

build-builder-docker-image:
environment:
- IMAGE: taraxa-builder
- CONAN_REVISIONS_ENABLED: 1
machine:
image: ubuntu-2204:2022.04.2
docker_layer_caching: true
resource_class: large
steps:
- checkout
- prepare
- run:
name: List images restored from DLC
command: |
docker images
- build_builder
- run:
name: List images to be saved in DLC
command: |
docker images
- run:
name: Show layers of taraxa-builder image
command: |
docker history taraxa-builder:${VERSION}
- tag_builder
- push_dockerhub
- store_artifacts:
path: tmp_docker


release-docker-image:
environment:
Expand All @@ -720,8 +752,6 @@ jobs:
- test
- tag
- push_dockerhub
- store_artifacts:
path: tmp_docker

create-and-push-builder:
docker:
Expand Down Expand Up @@ -1009,6 +1039,47 @@ workflows:
- build-linux
- build-mac


# ### workflows for builder image ### #
# run this workflow for specific branches 'builder/*'
build-builder-docker-image:
when:
and:
- not: << pipeline.parameters.deploy_prnet >>
- not: << pipeline.parameters.redeploy_prnet >>
- not: << pipeline.parameters.cleanup_prnet >>
jobs:
- build-builder-docker-image:
filters:
branches:
only:
- /^builder\/.*/
- /^chore\/builder-.*/
- /^fix\/builder-.*/
- /^feature\/builder-.*/
context:
- DOCKERHUB

# run this workflow for specific tags 'builder/*'
release-builder-docker-image:
when:
and:
- not: << pipeline.parameters.deploy_prnet >>
- not: << pipeline.parameters.redeploy_prnet >>
- not: << pipeline.parameters.cleanup_prnet >>
jobs:
- build-builder-docker-image:
filters:
branches:
ignore: /.*/
tags:
only: /^builder-v\d+.\d+.\d+/
context:
- DOCKERHUB
# ### workflows for builder image ### #


# ### workflows for taraxa-node image ### #
# run this workflow for all branches apart those reserved for chart
build-docker-image:
when:
Expand All @@ -1026,6 +1097,10 @@ workflows:
- /^chore\/chart-.*/
- /^fix\/chart-.*/
- /^feature\/chart-.*/
- /^builder\/.*/
- /^chore\/builder-.*/
- /^fix\/builder-.*/
- /^feature\/builder-.*/
context:
- TARAXA
- GCP
Expand Down Expand Up @@ -1060,7 +1135,7 @@ workflows:
- release-docker-image:
filters:
tags:
only:
only:
- /^v?\d+\.\d+\.\d+$/
- /^v?\d+\.\d+\.\d+-beta$/
branches:
Expand All @@ -1071,7 +1146,9 @@ workflows:
- K8S
- GCR
- DOCKERHUB
# ### workflows for taraxa-node image ### #

# ### workflows for taraxa-node helm chart ### #
# run this workflow for branches specified below
build-helm-chart:
when:
Expand All @@ -1091,13 +1168,12 @@ workflows:
- CHARTSREPO
filters:
branches:
only:
only:
- /^chart\/.*/
- /^chore\/chart-.*/
- /^fix\/chart-.*/
- /^feature\/chart-.*/


# run this workflow for tags, like chart-vX.Y.Z
release-helm-chart:
jobs:
Expand All @@ -1114,3 +1190,4 @@ workflows:
ignore: /.*/
tags:
only: /^chart-v\d+.\d+.\d+/
# ### workflows for taraxa-node helm chart ### #
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ cmake_minimum_required(VERSION 3.20)

# Set current version of the project
set(TARAXA_MAJOR_VERSION 1)
set(TARAXA_MINOR_VERSION 4)
set(TARAXA_PATCH_VERSION 9)
set(TARAXA_MINOR_VERSION 5)
set(TARAXA_PATCH_VERSION 0)
set(TARAXA_VERSION ${TARAXA_MAJOR_VERSION}.${TARAXA_MINOR_VERSION}.${TARAXA_PATCH_VERSION})

# Any time a change in the network protocol is introduced this version should be increased
set(TARAXA_NET_VERSION 1)
set(TARAXA_NET_VERSION 2)
# Major version is modified when DAG blocks, pbft blocks and any basic building blocks of our blockchain is modified
# in the db
set(TARAXA_DB_MAJOR_VERSION 1)
# Minor version should be modified when changes to the database are made in the tables that can be rebuilt from the
# basic tables
set(TARAXA_DB_MINOR_VERSION 1)
set(TARAXA_DB_MINOR_VERSION 2)

# Defines Taraxa library target.
project(taraxa-node VERSION ${TARAXA_VERSION})
Expand Down
5 changes: 4 additions & 1 deletion CMakeModules/cppcheck.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ else ()
--error-exitcode=1
--enable=all
--suppress=missingInclude
--suppress=missingIncludeSystem
# find_if - useless here
--suppress=useStlAlgorithm:${PROJECT_SOURCE_DIR}/*/pbft_sync_packet_handler.cpp
--suppress=noExplicitConstructor
Expand All @@ -36,8 +37,10 @@ else ()
--suppress=unmatchedSuppression:${PROJECT_SOURCE_DIR}/*/Common.h
--suppress=cstyleCast:${PROJECT_SOURCE_DIR}/*/vector_ref.h
--suppress=cstyleCast:${PROJECT_SOURCE_DIR}/*/Common.h
#not an issue here
# not an issue here
--suppress=virtualCallInConstructor:${PROJECT_SOURCE_DIR}/*/final_chain.cpp
# just a warning
--suppress=duplInheritedMember:${PROJECT_SOURCE_DIR}/*/FixedHash.h
# Only show found errors
"--quiet"

Expand Down
Loading
Loading