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

Merge develop branch into hardfork branch #2701

Merged
merged 431 commits into from
Dec 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
431 commits
Select commit Hold shift + click to select a range
531c611
Add tests for login_api
abitmore Jul 29, 2022
8c93d58
Update tests
abitmore Jul 29, 2022
717f892
Update login_api::get_config API to require login
abitmore Jul 29, 2022
0faac5e
Update docs for login_api::get_config API
abitmore Jul 29, 2022
351010b
Add api-node-info startup option and get_info API
abitmore Jul 29, 2022
cc2779c
Merge pull request #2617 from bitshares/pr-2614-login-apis
abitmore Jul 31, 2022
1103a6b
Extend custom_operations_api::get_storage_info API
abitmore Aug 5, 2022
5ee1c9a
Add tests for extended get_storage_info API
abitmore Aug 6, 2022
4a82499
Update docs for get_storage_info API
abitmore Aug 6, 2022
9032858
Merge pull request #2620 from bitshares/pr-2139-custom-ops-apis
abitmore Aug 6, 2022
9651d7a
Use configured limit as API page size if omitted
abitmore Aug 6, 2022
d5de492
Use configured limit as API page size if omitted
abitmore Aug 6, 2022
9c4fb65
Add tests for small API limits
abitmore Aug 6, 2022
e2f2790
Merge pull request #2622 from bitshares/pr-2619-fix-api-omitted-limit
abitmore Aug 7, 2022
9056a24
Delete objects from ES before loading from DB
abitmore Aug 8, 2022
adccebf
Remove a unnecessary check
abitmore Aug 8, 2022
1758c79
Always delete objects from ES first on resync
abitmore Aug 8, 2022
0ea89c6
Add logging
abitmore Aug 8, 2022
d23a6e1
Fix code smells
abitmore Aug 8, 2022
d54da7e
Add tests for limit order object processing in ES
abitmore Aug 8, 2022
d0ead78
Fix es_objects plugin limit order processing tests
abitmore Aug 8, 2022
8e98c4c
Merge pull request #2623 from bitshares/pr-2464-es-obj-del
abitmore Aug 8, 2022
ab61d2b
Store fee payer in account history in ES
abitmore Aug 9, 2022
4dac52c
Add tests for fee payer in ES
abitmore Aug 9, 2022
d904a83
Merge pull request #2624 from bitshares/pr-2583-es-add-fee-payer
abitmore Aug 9, 2022
d2a56ee
Lower log level of an exception in LP_exchange_op
abitmore Aug 9, 2022
bd01d9a
Merge pull request #2625 from bitshares/pr-2543-suppress-p2p-logging
abitmore Aug 10, 2022
38225a1
Update license year to 2022
abitmore Aug 10, 2022
4edcc14
Merge pull request #2626 from bitshares/update-license-year-2022
abitmore Aug 10, 2022
d5e19be
Merge develop branch into jmj_659c and fix build
abitmore Aug 12, 2022
94053f9
Do not listen to network if not accept connections
abitmore Aug 12, 2022
ad71e5c
Remove unnecessary code
abitmore Aug 12, 2022
7d63ebc
Remove trailing whitespaces
abitmore Aug 12, 2022
baf0468
Update docs
abitmore Aug 12, 2022
d484ce8
Add virtual destructor to address_builder class
abitmore Aug 12, 2022
0db53ad
Remove trailing whitespaces
abitmore Aug 12, 2022
73fb7a0
Fix network_mapper
abitmore Aug 13, 2022
896049d
Deal with nodes that have changed ID
abitmore Aug 13, 2022
9fa8e97
Fix code smells
abitmore Aug 13, 2022
50bfefc
Fix code smells
abitmore Aug 14, 2022
a08ddd7
Replace non-public addresses with public addresses
abitmore Aug 14, 2022
52c6649
Add comments
abitmore Aug 14, 2022
812b935
Fix a code smell
abitmore Aug 14, 2022
b4f6329
Update address records when building by list
abitmore Aug 14, 2022
a0a7410
Listen to default but not random port by default
abitmore Aug 14, 2022
53ab60a
Simplify code
abitmore Aug 14, 2022
c56ed06
Only save new or updated address to peer database
abitmore Aug 14, 2022
c2c21cd
Fix code smells
abitmore Aug 14, 2022
17bb77a
Fix code smells
abitmore Aug 15, 2022
dfd33c6
Re-add peer_connection::is_firewalled and ...
abitmore Aug 17, 2022
f027741
Add "p2p-inbound-endpoint" node startup option
abitmore Aug 26, 2022
33a62e3
Add some gatekeeping code
abitmore Aug 28, 2022
e9d1e16
Handle node_id in user_data in hello message
abitmore Aug 29, 2022
efe8690
Refactor on_hello_message, verify inbound endpoint
abitmore Aug 29, 2022
8381eb3
Update logging
abitmore Aug 29, 2022
a6a1b7e
Update inbound endpoint verification ...
abitmore Sep 2, 2022
c94cbc7
Add colors to log messages in app_test
abitmore Sep 2, 2022
3d56e96
Fix and improve P2P node tests
abitmore Sep 2, 2022
8db58de
Update tests to get around race conditions in code
abitmore Sep 2, 2022
e498589
Add a comment
abitmore Sep 2, 2022
7458c24
Fix threading issues in p2p_node_tests
abitmore Sep 3, 2022
e758340
Update member functions to const, update logging
abitmore Sep 5, 2022
649bcbc
Create dir for saving node config if not exist
abitmore Sep 5, 2022
cfbdba9
Update two_node_network test to three_node_network
abitmore Sep 5, 2022
2e535c1
Avoid using get_socket() in on_hello_message()
abitmore Sep 5, 2022
171bdd9
Add try-catch in on_hello when checking signature
abitmore Sep 5, 2022
da8ea0d
Add more P2P node tests
abitmore Sep 6, 2022
bbea3c9
Fix threading issues in p2p_node_tests
abitmore Sep 6, 2022
01a4e27
Fix code smells
abitmore Sep 6, 2022
68c452b
Remove redundant "disable-peer-advertising" option
abitmore Sep 6, 2022
09d6ca7
Skip processing addresses if !connect_to_new_peers
abitmore Sep 6, 2022
9ce161a
Reconnect from OS-selected port if fail to connect
abitmore Sep 6, 2022
dc72295
Save successfully connected endpoint to peer db
abitmore Sep 7, 2022
6169691
Fix code smells
abitmore Sep 7, 2022
e3ddde5
Fix typo
abitmore Sep 7, 2022
9edf789
Do not expose local address if not listening
abitmore Sep 7, 2022
be70a6f
Rename some startup options related to p2p network
abitmore Sep 7, 2022
9b175ea
Do not try to bind if not listening
abitmore Sep 7, 2022
b9f64d6
Prefer peer's socket address if it's not listening
abitmore Sep 7, 2022
1ae2bca
Update three_node_network to test not listening
abitmore Sep 7, 2022
53e9c38
Rename and update some P2P-related startup options
abitmore Sep 7, 2022
b231426
Update logging
abitmore Sep 8, 2022
b211dce
Update logging
abitmore Sep 8, 2022
67bbdea
Save remote endpoint of inbound peer to peer db
abitmore Sep 8, 2022
9a7f723
Update logging
abitmore Sep 8, 2022
e0721f9
Update logging
abitmore Sep 9, 2022
75686ef
Update logging
abitmore Sep 9, 2022
984b1b6
Update logging
abitmore Sep 12, 2022
6236043
Add logging about sending bulk data in replay mode
abitmore Sep 11, 2022
90e6f70
Remove trailing whitespaces
abitmore Sep 12, 2022
576bb78
Merge pull request #1764 from bitshares/jmj_659c
abitmore Sep 12, 2022
43ee8fa
Merge pull request #2636 from bitshares/abitmore-patch-1
abitmore Sep 12, 2022
1eddc9f
Extend get_order_book API to return more info
abitmore Sep 12, 2022
4ab7acf
Update tests for extended get_order_book API
abitmore Sep 12, 2022
b5eeae8
Merge pull request #2638 from bitshares/pr-2637-orderbook-api
abitmore Sep 12, 2022
c4e1cdd
Add creation block num and time for accnts, assets
abitmore Sep 13, 2022
0dc888b
Add tests for account and asset creation time
abitmore Sep 14, 2022
51ced00
Verify inbound endpoints as soon as possible
abitmore Sep 15, 2022
cce5650
Fix a code smell
abitmore Sep 15, 2022
d331b4a
Review inbound peer's inbound endpoint
abitmore Sep 15, 2022
0090b1f
Fix a code smell
abitmore Sep 15, 2022
326d44e
Guess inbound endpoint early to avoid revisiting
abitmore Sep 15, 2022
f7023e5
Simplify code
abitmore Sep 15, 2022
28704f1
Remove redundant member: inbound_endpoint_verified
abitmore Sep 15, 2022
120ea6f
Avoid unnecessary copying of data
abitmore Sep 15, 2022
c0174e8
Fix a code smell
abitmore Sep 15, 2022
408153f
Merge pull request #2640 from bitshares/p2p-inbound-verify
abitmore Sep 16, 2022
3ab613e
Extend get_block_header* APIs to return signatures
abitmore Sep 16, 2022
d8c8f01
Add tests for get_block* APIs
abitmore Sep 16, 2022
de723bb
Add is_virtual field to operation_history_object
abitmore Sep 16, 2022
1ff5d8e
Add block_time field to operation_history_object
abitmore Sep 16, 2022
21bd95b
Bump DB_VERSION
abitmore Sep 16, 2022
ade248e
Pass the block_nums param by reference to const
abitmore Sep 16, 2022
b145598
Handle block_time and is_virtual fields in plugins
abitmore Sep 16, 2022
d07cb03
Add tests for block_time and is_virtual fields
abitmore Sep 16, 2022
8084f2f
Show operation history IDs in CLI wallet
abitmore Sep 16, 2022
60ef74b
Merge pull request #2641 from bitshares/pr-2588-signed-block-header-api
abitmore Sep 16, 2022
323cd50
Merge pull request #2645 from bitshares/wallet-history-show-ids
abitmore Sep 17, 2022
e19064d
Fine tuning README
ioBanker Sep 20, 2022
2d0f875
Update README.md
ioBanker Sep 21, 2022
bb59fab
Update README.md
ioBanker Sep 21, 2022
5985534
Add option to keep operations in the last X blocks
abitmore Sep 30, 2022
54733bf
Wrap long lines, update indents
abitmore Sep 30, 2022
7228516
Update tests for the new min-blocks-to-keep option
abitmore Sep 30, 2022
32d4d0a
Update description of some program options
abitmore Sep 30, 2022
e97455c
Add tests for min-blocks-to-keep option
abitmore Sep 30, 2022
9274261
Remove redundant or commented out code
abitmore Oct 1, 2022
0ca04b9
Delete too old history when new block arrives
abitmore Oct 1, 2022
183fd70
Modify LOAD_VALUE_SET macro to require a semicolon
abitmore Oct 1, 2022
56b1026
Simplify code
abitmore Oct 1, 2022
4a6d9d5
Add tests for partial-operations option
abitmore Oct 1, 2022
fcf4798
Add default value to description of some options
abitmore Oct 1, 2022
e784669
Merge pull request #2639 from bitshares/pr-2586-account-asset-creatio…
abitmore Oct 1, 2022
315a0c3
Merge pull request #2642 from bitshares/pr-487-account-history-time
abitmore Oct 1, 2022
ca200dc
Shorten a struct name
abitmore Oct 2, 2022
1db2e1a
Refactor code for better performance
abitmore Oct 2, 2022
74018b5
Shorten a variable name
abitmore Oct 2, 2022
ab9f5ff
Update variable names to avoid variable shadowing
abitmore Oct 2, 2022
e8c80c4
Extract a code block into a function
abitmore Oct 2, 2022
f814334
Merge pull request #2648 from bitshares/pr-2268-account-history-by-bl…
abitmore Oct 3, 2022
55e4cc9
Update README.md
ioBanker Oct 3, 2022
9f823e0
Update README.md
ioBanker Oct 3, 2022
d580e29
Update README.md
ioBanker Oct 3, 2022
5b84e95
Add history_api::get_account_history_by_time API
abitmore Oct 3, 2022
e2221dd
Merge pull request #2646 from ioBanker/patch-1
abitmore Oct 4, 2022
a7c1486
Add tests for get_account_history_by_time API
abitmore Oct 4, 2022
d49745f
Add history_api::get_block_operations_by_time API
abitmore Oct 4, 2022
0a5727e
Add tests for get_block_operations_by_time API
abitmore Oct 4, 2022
c6c2aac
Merge pull request #2650 from bitshares/pr-2647-get-account-history-b…
abitmore Oct 4, 2022
70e5b3e
Fix API docs
abitmore Oct 4, 2022
938cfee
Merge pull request #2651 from bitshares/pr-2498-get-block-ops-by-time
abitmore Oct 5, 2022
9bbb5be
Add an optional param to get_block_header* APIs
abitmore Oct 5, 2022
f343906
Update tests for get_block* APIs
abitmore Oct 5, 2022
43c95ab
Add a comment
abitmore Oct 6, 2022
7f83c30
Add database_api::get_next_object_id API
abitmore Oct 7, 2022
94681bf
Add tests for get_next_object_id API
abitmore Oct 7, 2022
0883cad
Merge pull request #2652 from bitshares/pr-2588-optional-sigs
abitmore Oct 7, 2022
c57a0f1
Merge pull request #2653 from bitshares/pr-2649-get-next-id-api
abitmore Oct 9, 2022
7432205
Merge 'explicit-address-construction' into develop
abitmore Oct 10, 2022
cb0e886
Merge 'develop' into explicit-address-construction
abitmore Oct 10, 2022
e37fa14
Merge pull request #1151 from bitshares/explicit-address-construction
abitmore Oct 11, 2022
bd440cf
Refactor code about object_id and object_id_type
abitmore Oct 13, 2022
c761429
Bump ZLIB version
abitmore Oct 18, 2022
a7587b5
Refactor code and fix code smells
abitmore Oct 18, 2022
ddfbb6d
Fix code smells
abitmore Oct 19, 2022
b1a89b9
Remove a redundant function and refactor some code
abitmore Oct 19, 2022
534529b
Add safeguard code to add_index()
abitmore Oct 19, 2022
ec587e8
Skip plugins in app_test
abitmore Oct 20, 2022
9c5aa13
Update CMake library linking order
abitmore Oct 20, 2022
d1423a0
Fix code smells
abitmore Oct 20, 2022
b5de525
Avoid overflow in from_variant(object_id)
abitmore Oct 21, 2022
8f31fb0
Fix some Doxygen warnings and errors
abitmore Oct 18, 2022
abff625
Update and reformat some comments
abitmore Oct 19, 2022
069e291
Add a default value to fill_order_op::is_maker
abitmore Oct 22, 2022
a76c911
Merge pull request #2658 from bitshares/fix-code-smells
abitmore Oct 23, 2022
387af45
Merge pull request #2659 from bitshares/fix-doxygen
abitmore Oct 23, 2022
d141973
Fix compiler warnings
abitmore Oct 23, 2022
836db04
Add override keyword to test_delegate::on_message
abitmore Oct 23, 2022
761aae4
Update default version of pts_address to constexpr
abitmore Oct 23, 2022
40cc62c
Update most functions of wallet_api class to const
abitmore Oct 23, 2022
e7bd762
Merge pull request #2660 from bitshares/fix-compiler-warnings
abitmore Oct 24, 2022
42c6afc
Add comparator "std::less<>" to "map<string, ...>"
abitmore Oct 25, 2022
7772d56
Bump FC for std::map serialization update
abitmore Oct 26, 2022
0fd16c8
Simplify help info in cli_wallet
abitmore Oct 26, 2022
d417936
Replace typedef with using
abitmore Oct 26, 2022
8fbc1cd
Simplify wallet_api::borrow_asset() implementation
abitmore Oct 26, 2022
2d2bf9c
Fix code smells
abitmore Oct 26, 2022
5f80313
Fix a long line
abitmore Oct 26, 2022
805e052
Bump FC for typename of map<K,V,std::less<>>
abitmore Oct 27, 2022
c44e91c
Avoid using reserved identifier "remove"
abitmore Oct 27, 2022
d8090ca
Rename a variable
abitmore Oct 27, 2022
3193263
Extend transaction_handle_type to 32 bits
abitmore Oct 27, 2022
74d72ba
Merge pull request #2661 from bitshares/fix-code-smells
abitmore Oct 27, 2022
830555d
Declare database_api::get_full_accounts() as const
abitmore Oct 28, 2022
ad7d0b9
Remove .travis.yml and related files
abitmore Oct 27, 2022
9299b52
Update dependency versions used in Github Actions
abitmore Oct 28, 2022
fdfeead
Run sonar-scan workflow with Ubuntu 20.04
abitmore Oct 28, 2022
db763c4
Use GITHUB_REF_NAME variable provided by Github
abitmore Oct 28, 2022
e3568f9
Update base image to focal-1.2.0, and upgrade libs
abitmore Oct 28, 2022
c275ca0
Merge pull request #2663 from bitshares/fix-code-smells
abitmore Oct 28, 2022
834f8cd
Merge pull request #2664 from bitshares/update-ci
abitmore Oct 28, 2022
e6c0744
Support building with curl v7.77 or higher in mac
abitmore Oct 28, 2022
61d3fb0
Merge pull request #2665 from bitshares/fix-macos-build
abitmore Oct 30, 2022
9309426
Update Docker Hub repository path to a variable
abitmore Oct 30, 2022
6abef18
Push the major.minor version tag to Docker Hub too
abitmore Oct 31, 2022
673035b
Update Docker user and group
abitmore Oct 31, 2022
cd5a1d8
Drop root privileges in bitsharesentry.sh instead
abitmore Nov 1, 2022
233dbb7
Use Docker Multistage Builds
abitmore Nov 1, 2022
501cec4
Do not install fish
abitmore Nov 1, 2022
65befca
Upgrade libraries in the entry script
abitmore Nov 1, 2022
cdc03c7
Fix a typo in a comment
abitmore Nov 7, 2022
62a9441
Merge pull request #2666 from bitshares/update-build-docker
abitmore Nov 7, 2022
2715bcd
Fix a typo and a symbol in README
abitmore Nov 7, 2022
ed73b55
Fix a link, update wording and parameters used
abitmore Nov 7, 2022
98565fc
Update wording or text formatting
abitmore Nov 7, 2022
e6066d5
Merge pull request #2672 from bitshares/fix-readme-typo
abitmore Nov 7, 2022
1a4ad00
Merge pull request #2654 from bitshares/develop
abitmore Nov 7, 2022
a7beefa
Update sonar.branch.target in release branch
abitmore Nov 8, 2022
534c5ba
Remove unused code
abitmore Nov 8, 2022
40913fe
Merge pull request #2674 from bitshares/update-sonar-config
abitmore Nov 8, 2022
ecdcd1b
Fix code smells
abitmore Nov 8, 2022
ea6badb
Fix code smells
abitmore Nov 8, 2022
f18977c
Fix code smells
abitmore Nov 9, 2022
8d760bb
Remove trailing whitespaces
abitmore Nov 9, 2022
97cee1b
Merge pull request #2675 from bitshares/fix-code-smells
abitmore Nov 9, 2022
0746024
Update OpenSSL version used in CI to 1.1.1s
abitmore Nov 9, 2022
152f72c
Merge pull request #2676 from bitshares/update-openssl
abitmore Nov 10, 2022
850601d
Update variable names
abitmore Nov 11, 2022
dc8cdbb
Adapt restriction::argument as an object for ES
abitmore Nov 12, 2022
2e56658
Merge pull request #2679 from bitshares/update-variable-names
abitmore Nov 12, 2022
07d529f
Merge pull request #2681 from bitshares/fix-adapt-restriction-argument
abitmore Nov 13, 2022
c97f411
Send bulk if approximate pending data size fits
abitmore Nov 13, 2022
3a3e97d
Update logging
abitmore Nov 14, 2022
e4257e8
Update logging
abitmore Nov 14, 2022
a03d138
Remove a seed node
abitmore Nov 14, 2022
02fa4d0
Merge pull request #2683 from bitshares/pr-2682-es-bulk-size
abitmore Nov 15, 2022
df34f9c
Merge pull request #2684 from bitshares/remove-seed
abitmore Nov 15, 2022
37f9a8e
Fix logging
abitmore Nov 16, 2022
fdc27a5
Merge pull request #2688 from bitshares/fix-logging
abitmore Nov 16, 2022
0fc9b33
Update p2p call stats collector log level to debug
abitmore Nov 30, 2022
5984427
Bump docs submodule
abitmore Nov 30, 2022
5b4b298
Update version in Doxyfile to 6.1.0
abitmore Nov 30, 2022
644690e
Update contributors
abitmore Nov 30, 2022
4d49bdd
Merge pull request #2694 from bitshares/update-p2p-stats-log-level
abitmore Nov 30, 2022
d28e3f5
Merge pull request #2695 from bitshares/update-for-release
abitmore Nov 30, 2022
02fc04c
Update README
abitmore Dec 1, 2022
8de9094
Merge pull request #2696 from bitshares/update-readme
abitmore Dec 1, 2022
b304021
Update sonar.branch.target for develop branch
abitmore Dec 2, 2022
456fe19
Refactor login_api::login(), fix code smells
abitmore Dec 3, 2022
9d3de7d
Merge pull request #2700 from bitshares/merge-release-develop
abitmore Dec 3, 2022
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 .github/workflows/build-and-test.mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
name: Build and test in macOS
strategy:
matrix:
os: [macos-10.15, macos-11]
os: [macos-11]
runs-on: ${{ matrix.os }}
steps:
- name: Install dependencies
Expand All @@ -17,7 +17,7 @@ jobs:
brew install ccache
brew install parallel
brew install bitshares/boost/boost@1.69
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Configure
Expand All @@ -31,7 +31,7 @@ jobs:
-D OPENSSL_ROOT_DIR=/usr/local/opt/openssl@1.1 \
..
- name: Load Cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ccache
key: ccache-${{ matrix.os }}-${{ github.ref }}-${{ github.sha }}
Expand Down
34 changes: 20 additions & 14 deletions .github/workflows/build-and-test.ubuntu-debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ${{ matrix.os }}
services:
elasticsearch:
image: docker://elasticsearch:7.10.1
image: docker://elasticsearch:7.17.7
options: --env discovery.type=single-node --publish 9200:9200 --publish 9300:9300
steps:
- name: Install dependencies
Expand Down Expand Up @@ -43,22 +43,28 @@ jobs:
df -h
sudo du -hs /mnt/*
sudo ls -alr /mnt/
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Configure
run: |
pwd
df -h .
free
sudo dd if=/dev/zero of=/swapfile bs=1024 count=4M
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
free
mkdir -p _build
sudo mkdir -p /_build/libraries /_build/programs /mnt/_build/tests
sudo chmod a+rwx /_build/libraries /_build/programs /mnt/_build/tests
sudo mkdir -p /_build/libraries /_build/programs /_build/tests /mnt/_build
sudo chmod a+rwx /_build/libraries /_build/programs /_build/tests
ln -s /_build/libraries _build/libraries
ln -s /_build/programs _build/programs
ln -s /mnt/_build/tests _build/tests
ln -s /_build/tests _build/tests
sudo ln -s /_build/libraries /mnt/_build/libraries
sudo ln -s /_build/programs /mnt/_build/programs
sudo ln -s /mnt/_build/tests /_build/tests
sudo ln -s /_build/tests /mnt/_build/tests
ls -al _build
pushd _build
export -n BOOST_ROOT BOOST_INCLUDEDIR BOOST_LIBRARYDIR
Expand All @@ -71,7 +77,7 @@ jobs:
..
popd
- name: Load Cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ccache
key: ccache-debug-${{ matrix.os }}-${{ github.ref }}-${{ github.sha }}
Expand All @@ -83,13 +89,13 @@ jobs:
export CCACHE_DIR="$GITHUB_WORKSPACE/ccache"
mkdir -p "$CCACHE_DIR"
df -h
make -j 2 -C _build chain_test
make -j 2 -C _build cli_test
make -j 2 -C _build app_test
make -j 2 -C _build es_test
make -j 2 -C _build cli_wallet
make -j 2 -C _build witness_node
make -j 2 -C _build
make -j 1 -C _build chain_test
make -j 1 -C _build cli_test
make -j 1 -C _build app_test
make -j 1 -C _build es_test
make -j 1 -C _build cli_wallet
make -j 1 -C _build witness_node
make -j 1 -C _build
df -h
du -hs _build/libraries/* _build/programs/* _build/tests/*
du -hs _build/*
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build-and-test.ubuntu-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ${{ matrix.os }}
services:
elasticsearch:
image: docker://elasticsearch:7.10.1
image: docker://elasticsearch:7.17.7
options: --env discovery.type=single-node --publish 9200:9200 --publish 9300:9300
steps:
- name: Install dependencies
Expand Down Expand Up @@ -40,7 +40,7 @@ jobs:
sudo apt-get auto-remove -y
sudo apt-get clean -y
df -h
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Configure
Expand All @@ -57,7 +57,7 @@ jobs:
..
popd
- name: Load Cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ccache
key: ccache-release-${{ matrix.os }}-${{ github.ref }}-${{ github.sha }}
Expand All @@ -68,7 +68,7 @@ jobs:
run: |
export CCACHE_DIR="$GITHUB_WORKSPACE/ccache"
mkdir -p "$CCACHE_DIR"
make -j 2 -C _build
make -j 1 -C _build
df -h
- name: Unit-Tests
run: |
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/build-and-test.win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ env:
# The following are for windows cross-build only:
BOOST_VERSION: 1_69_0
BOOST_DOTTED_VERSION: 1.69.0
CURL_VERSION: 7.67.0
OPENSSL_VERSION: 1.1.1d
ZLIB_VERSION: 1.2.11
CURL_VERSION: 7.86.0
OPENSSL_VERSION: 1.1.1s
ZLIB_VERSION: 1.2.13
jobs:
prepare-mingw64-libs:
name: Build required 3rd-party libraries
Expand All @@ -19,7 +19,7 @@ jobs:
echo "OS_VERSION=`lsb_release -sr`" >> $GITHUB_ENV
- name: Load Cache
id: cache-libs
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: libs
key: mingw64-libs-${{ env.OS_VERSION }}-${{ env.BOOST_VERSION }}_${{ env.CURL_VERSION }}_${{ env.OPENSSL_VERSION }}_${{ env.ZLIB_VERSION }}
Expand Down Expand Up @@ -113,13 +113,13 @@ jobs:
sudo apt-get auto-remove -y
sudo apt-get clean -y
df -h
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive
- run: |
echo "OS_VERSION=`lsb_release -sr`" >> $GITHUB_ENV
- name: Load external libraries
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: libs
key: mingw64-libs-${{ env.OS_VERSION }}-${{ env.BOOST_VERSION }}_${{ env.CURL_VERSION }}_${{ env.OPENSSL_VERSION }}_${{ env.ZLIB_VERSION }}
Expand All @@ -143,7 +143,7 @@ jobs:
-D GRAPHENE_DISABLE_UNITY_BUILD=ON \
..
- name: Load Cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ccache
key: ccache-mingw64-${{ env.OS_VERSION }}-${{ github.ref }}-${{ github.sha }}
Expand Down
42 changes: 29 additions & 13 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,62 @@
name: Build and push to DockerHub
name: Docker
on: [ push, pull_request ]
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Inject slug/short environment variables
uses: rlespinasse/github-slug-action@v3.x
- name: Decide whether to push to DockerHub, and set tag
if: |
github.event_name == 'push' &&
( startsWith( github.ref, 'refs/tags/' ) ||
contains( fromJSON('["master","develop","testnet","hardfork"]'), env.GITHUB_REF_NAME ) )
contains( fromJSON('["master","develop","testnet","hardfork"]'), github.ref_name ) )
run: |
if [[ "${GITHUB_REF_NAME}" == "master" ]] ; then
if [ "${GITHUB_REF_NAME}" == "master" ] ; then
DOCKER_PUSH_TAG=latest
else
DOCKER_PUSH_TAG=${GITHUB_REF_NAME}
fi
echo "DOCKER_PUSH_TAG=${DOCKER_PUSH_TAG}"
echo "DOCKER_PUSH_TAG=${DOCKER_PUSH_TAG}" >> $GITHUB_ENV
VERSION_MAJOR=`echo "${DOCKER_PUSH_TAG}" | cut -f1 -d'.'`
if [ "${VERSION_MAJOR}" != "${DOCKER_PUSH_TAG}" ]; then
VERSION_MINOR=`echo "${DOCKER_PUSH_TAG}" | cut -f2 -d'.'`
DOCKER_PUSH_TAG_SHORT=${VERSION_MAJOR}.${VERSION_MINOR}
if [ "${DOCKER_PUSH_TAG_SHORT}" != "${DOCKER_PUSH_TAG}" ]; then
echo "DOCKER_PUSH_TAG_SHORT=${DOCKER_PUSH_TAG_SHORT}"
echo "DOCKER_PUSH_TAG_SHORT=${DOCKER_PUSH_TAG_SHORT}" >> $GITHUB_ENV
fi
fi
- name: Test tag
if: env.DOCKER_PUSH_TAG != ''
run: echo "${DOCKER_PUSH_TAG}"
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2
- name: Build only
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: .
load: true
- name: Login to DockerHub
if: env.DOCKER_PUSH_TAG != ''
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Push to DockerHub
if: env.DOCKER_PUSH_TAG != ''
uses: docker/build-push-action@v2
- name: Push to DockerHub (for branches)
if: env.DOCKER_PUSH_TAG != '' && env.DOCKER_PUSH_TAG_SHORT == ''
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ${{ secrets.DOCKERHUB_REPO_PATH }}:${{ env.DOCKER_PUSH_TAG }}
- name: Push to DockerHub (for tags)
if: env.DOCKER_PUSH_TAG != '' && env.DOCKER_PUSH_TAG_SHORT != ''
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: bitshares/bitshares-core:${{ env.DOCKER_PUSH_TAG }}
tags: |
${{ secrets.DOCKERHUB_REPO_PATH }}:${{ env.DOCKER_PUSH_TAG }}
${{ secrets.DOCKERHUB_REPO_PATH }}:${{ env.DOCKER_PUSH_TAG_SHORT }}
21 changes: 14 additions & 7 deletions .github/workflows/sonar-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,18 @@ jobs:
name: Scan with SonarScanner
strategy:
matrix:
os: [ ubuntu-latest ]
os: [ ubuntu-20.04 ]
runs-on: ${{ matrix.os }}
services:
elasticsearch:
image: docker://elasticsearch:7.10.1
image: docker://elasticsearch:7.17.7
options: --env discovery.type=single-node --publish 9200:9200 --publish 9300:9300
steps:
- name: Download and install latest SonarScanner CLI tool
run: |
SONAR_SCANNER_VERSION=`curl https://github.com/SonarSource/sonar-scanner-cli/releases/latest \
2>/dev/null | cut -f2 -d'"' | cut -f8 -d'/'`
SONAR_SCANNER_VERSION=`curl -w %{redirect_url} \
https://github.com/SonarSource/sonar-scanner-cli/releases/latest \
2>/dev/null | cut -f8 -d'/'`
SONAR_DOWNLOAD_PATH=https://binaries.sonarsource.com/Distribution/sonar-scanner-cli
curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip \
$SONAR_DOWNLOAD_PATH/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux.zip
Expand Down Expand Up @@ -60,14 +61,20 @@ jobs:
df -h
sudo du -hs /mnt/*
sudo ls -alr /mnt/
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: recursive
- name: Configure
run: |
pwd
df -h .
free
sudo dd if=/dev/zero of=/swapfile bs=1024 count=4M
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
free
mkdir -p _build
sudo mkdir -p /_build/libraries /_build/programs /mnt/_build/tests
sudo chmod a+rwx /_build/libraries /_build/programs /mnt/_build/tests
Expand Down Expand Up @@ -96,7 +103,7 @@ jobs:
- run: |
echo "OS_VERSION=`lsb_release -sr`" >> $GITHUB_ENV
- name: Load Cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
ccache
Expand All @@ -110,7 +117,7 @@ jobs:
export CCACHE_DIR="$GITHUB_WORKSPACE/ccache"
mkdir -p "$CCACHE_DIR"
df -h
programs/build_helpers/make_with_sonar bw-output -j 2 -C _build \
programs/build_helpers/make_with_sonar bw-output -j 1 -C _build \
witness_node cli_wallet js_operation_serializer get_dev_key network_mapper \
app_test chain_test cli_test es_test
df -h
Expand Down
41 changes: 0 additions & 41 deletions .travis.yml

This file was deleted.

9 changes: 8 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ macro(FIND_CURL)
find_package(CURL REQUIRED)
endif (NOT WIN32 AND NOT APPLE AND CURL_STATICLIB)

if( APPLE AND NOT "${CURL_VERSION_STRING}" VERSION_LESS "7.77.0" )
list( APPEND CURL_LIBRARIES "-framework CoreFoundation" )
list( APPEND CURL_LIBRARIES "-framework SystemConfiguration" )
endif()

message(STATUS "CURL libraries: ${CURL_LIBRARIES}")

if( WIN32 )
if ( MSVC )
list( APPEND CURL_LIBRARIES Wldap32 )
Expand Down Expand Up @@ -261,7 +268,7 @@ else( WIN32 ) # Apple AND Linux

if( APPLE )
# Apple Specific Options Here
message( STATUS "Configuring BitShares on OS X" )
message( STATUS "Configuring BitShares on macOS" )
set( CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -stdlib=libc++ -Wall -fvisibility-inlines-hidden -fvisibility=hidden" )
else( APPLE )
if ( "${CMAKE_SYSTEM_NAME}" STREQUAL "OpenBSD" )
Expand Down
Loading