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 #1838

Merged
merged 375 commits into from
Jul 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
375 commits
Select commit Hold shift + click to select a range
205f3a3
set participation to fixed 2 decimals
oxarbitrage Mar 23, 2019
4780593
Added the fix to make top 4 apis configurable
manikey123 Mar 24, 2019
a411589
Merge pull request #1666 from bitshares/oxarbitrage-patch-1
oxarbitrage Mar 24, 2019
80a9f9f
reduce precision of numbers in replay output
oxarbitrage Mar 24, 2019
4d5c02a
Fix some warnings
nathanielhourt Mar 25, 2019
5dad10c
Merge pull request #1 from openledger/issue-1210-core-912
OpenLedgerApp Mar 25, 2019
392ac40
Merge pull request #1674 from bitshares/replay-perc-numbers
oxarbitrage Mar 25, 2019
b96cc0c
Merge pull request #1677 from nathanhourt/warnings
nathanielhourt Mar 25, 2019
f03c207
Apply deterministic virtual_op numbering rule
abitmore Mar 24, 2019
f9b7460
change BTS-symbol to 1.3.0
Mar 26, 2019
ed08580
Merge pull request #1635 from openledger/issue-1210
pmconrad Mar 27, 2019
ff004b4
change indentation in quit command
oxarbitrage Mar 28, 2019
fb657f6
Fix conflicts merging release to develop
jmjatlanta Mar 28, 2019
b225f96
Final cr/lf
jmjatlanta Mar 28, 2019
1abddf9
Merge pull request #1684 from bitshares/oxarbitrage-patch-1
oxarbitrage Mar 28, 2019
f74f450
Merge pull request #1686 from bitshares/jmj_release_develop
jmjatlanta Mar 29, 2019
c8ce31a
fix referencing local stack variable in async thread
crypto-ape Apr 2, 2019
376f031
explicitly cleanup external library facilities
crypto-ape Apr 2, 2019
53af67e
fix referencing local stack variable in async thread // add missing p…
crypto-ape Apr 2, 2019
3ab22f6
fix referencing local stack variable in async thread // capture share…
crypto-ape Apr 2, 2019
da6c386
Merge branch 'develop' into vop-numbering
abitmore Apr 3, 2019
626c572
Add htlc_extend validation
jmjatlanta Apr 4, 2019
69f5aa7
Added tests for htlc_extend
jmjatlanta Apr 4, 2019
24ffef2
Correctly validate HTLC extension date
jmjatlanta Apr 4, 2019
82fa2f8
Only allow HTLC recipient to call redeem
jmjatlanta Apr 4, 2019
510932f
Shorten long lines
jmjatlanta Apr 4, 2019
8f5dddd
Allow 3rd party to redeem, notify all
jmjatlanta Apr 5, 2019
441e290
Improve the serializer to fix #1701
xeroc Apr 5, 2019
96dca2c
More fixes for formatting
xeroc Apr 5, 2019
ac9bcfb
Merge pull request #1699 from bitshares/jmj_htlc_hotfix
jmjatlanta Apr 8, 2019
7710bc6
Update Doxy version tag
jmjatlanta Apr 8, 2019
51bc677
Merge pull request #1710 from bitshares/jmj_release_doxy
oxarbitrage Apr 8, 2019
95532b3
Resolve #1670: Make const const again
nathanielhourt Mar 23, 2019
b7a2a7b
Ref #1670: Rename non-const getter for clarity
nathanielhourt Mar 25, 2019
51875b0
Update fc submodule
nathanielhourt Mar 25, 2019
94e3aac
Minor style change
nathanielhourt Apr 7, 2019
159a0cc
Ref #1670: Fix build against latest develop
nathanielhourt Apr 9, 2019
e44cd00
Merge pull request #1678 from nathanhourt/issue-1670
pmconrad Apr 10, 2019
860d241
Merge pull request #1676 from bitshares/vop-numbering
pmconrad Apr 10, 2019
421a2dd
Merge pull request #1693 from crypto-ape/valgrind-inspired-fixes
pmconrad Apr 10, 2019
14a6c2a
Merge pull request #1712 from bitshares/release
abitmore Apr 10, 2019
fc2e12a
fix Windows build errors
jmjatlanta Apr 5, 2019
5aaee56
Bump FC
jmjatlanta Apr 8, 2019
5563cd4
Merge pull request #1716 from bitshares/jmj_1619
jmjatlanta Apr 12, 2019
9b867b5
add genesis data to es_objects
oxarbitrage Apr 12, 2019
0a9d223
Fix conflict with hf1268 and removal of hf620
jmjatlanta Apr 12, 2019
38e0a26
replace block1 with head block, change help string
oxarbitrage Apr 13, 2019
168c27b
Added unit test to reproduce the problem
pmconrad Apr 13, 2019
8ef5635
Fixed #1719
pmconrad Apr 13, 2019
7897234
Merge pull request #1720 from bitshares/1719_required_approvals
pmconrad Apr 14, 2019
299e600
Fix warning
nathanielhourt Apr 14, 2019
0119a1d
Fix warning
nathanielhourt Apr 14, 2019
49382ea
Fix yet another warning
nathanielhourt Apr 14, 2019
c6f4799
Merge pull request #1721 from nathanhourt/develop
oxarbitrage Apr 15, 2019
28a0d08
Cleanup of some (not all) hf_199
jmjatlanta Apr 15, 2019
da6337d
removal of hf834
jmjatlanta Apr 16, 2019
db2795d
Fix comment for hf583
jmjatlanta Apr 16, 2019
b766f94
Fix unit test for HF199
jmjatlanta Apr 17, 2019
5c2692d
apply genesis() in applied_block at block 1
oxarbitrage Apr 17, 2019
cf476df
fixed test for HF834
jmjatlanta Apr 17, 2019
2c2eafd
remove es-objects-load-genesis option
oxarbitrage Apr 18, 2019
f7ae095
remove _es_objects_load_genesis
oxarbitrage Apr 18, 2019
88701ad
capture only this in applied block lambda
oxarbitrage Apr 20, 2019
ba328d3
capture only this in other connection lambdas
oxarbitrage Apr 20, 2019
c61c01d
add htlc api calls
oxarbitrage Apr 22, 2019
47b4082
Merge pull request #1717 from oxarbitrage/issue1652
oxarbitrage Apr 23, 2019
8cbd15a
install debug_witness headers
xloem Apr 21, 2019
85beeb3
Added missing reflection for proposal_object.fail_reason
pmconrad Apr 23, 2019
5de27ca
Merge pull request #1732 from pmconrad/1730_reflect_fail_reason
pmconrad Apr 25, 2019
d740d32
Fix warning
nathanielhourt Apr 26, 2019
7639430
Merge pull request #1736 from bitshares/nh-patch-warning
abitmore Apr 27, 2019
79ff42e
Removed unused header file
pmconrad Apr 28, 2019
254da1b
Merge pull request #1740 from pmconrad/1219_remove_fwd
abitmore Apr 28, 2019
febebff
Merge pull request #1702 from bitshares/1701-improve-serializer
pmconrad Apr 29, 2019
b86db3b
Fixed regression in #1702 - removed obsolete smart_ref
pmconrad Apr 29, 2019
a9333e7
Merge pull request #1741 from pmconrad/1702_regression
jmjatlanta Apr 29, 2019
7ad8447
Merge pull request #1718 from bitshares/jmj_1553b
jmjatlanta Apr 29, 2019
e710483
Merge pull request #1704 from bitshares/jmj_1593
jmjatlanta Apr 29, 2019
f1ce877
Merge pull request #1727 from xloem/debug-header-install
pmconrad Apr 29, 2019
f3365af
Merge branch 'issue1713' of https://github.com/oxarbitrage/bitshares-…
jmjatlanta Apr 29, 2019
91f3fa2
fixed typos, added from to get_full_accounts
jmjatlanta Apr 29, 2019
c699538
Make get_htlc_by_x return size limits configurable
jmjatlanta Apr 29, 2019
7a6f442
verify correct collection in test
jmjatlanta Apr 30, 2019
c737ea5
Merge pull request #1742 from bitshares/jmj_1713
jmjatlanta Apr 30, 2019
eec1da5
Ref #1506: Isolate chain/protocol to its own library
nathanielhourt Apr 14, 2019
dae82b1
Ref #1506: Add object_downcast_t
nathanielhourt Apr 14, 2019
074f000
Ref #1506: Move ID types from db to protocol
nathanielhourt Apr 19, 2019
90f33c1
Ref #1506: Isolate chain/protocol to its own library
nathanielhourt Apr 14, 2019
38b4acd
Bump FC
nathanielhourt Apr 26, 2019
c15b507
Remove commented-out index code
nathanielhourt May 1, 2019
ea4d28b
Wrap overlength line
nathanielhourt May 1, 2019
683f5d5
Remove unused key types
nathanielhourt May 1, 2019
1405345
Probably fix Docker build
nathanielhourt May 1, 2019
c2acd65
Fix unused variable warning
nathanielhourt May 1, 2019
1997b5c
Fix build after rebase
nathanielhourt May 1, 2019
0ed7deb
Merge pull request #1746 from bitshares/nathanhourt-fix-warning
oxarbitrage May 2, 2019
967b5dd
Support compiling with C++17/C++2a
emfrias May 2, 2019
59f6089
fix indentation in asset_api
oxarbitrage May 3, 2019
d6a4c17
Ref #1506: Bumb DB_VERSION
nathanielhourt May 4, 2019
7941f78
Merge pull request #1748 from oxarbitrage/indentation_asset_api
abitmore May 4, 2019
29d4dde
Ref #1506/#1737: Some requested changes
nathanielhourt May 4, 2019
4bd61ab
Ref #1506/#1737: Macro-fy ID type definitions
nathanielhourt May 4, 2019
cfa8a73
add by_authorized withdraw objects to get_full_accounts results
oxarbitrage May 4, 2019
22bc1e2
Ref #1506/#1737: Fix clean_name()
nathanielhourt May 4, 2019
2c6af3f
Ref #1506/#1737: Oops
nathanielhourt May 5, 2019
25e168e
Fix .gitignore
nathanielhourt May 6, 2019
cab48ae
add api-limit-get-full-accounts to application, complete implementati…
oxarbitrage May 6, 2019
ee0df87
add configurable limits to get_full_account lists
oxarbitrage May 6, 2019
851a97e
Fix sonar detection, dont let sonar fail the build, fix target branch…
pmconrad May 6, 2019
40f0419
Merge pull request #1747 from emfrias/c++17
jmjatlanta May 7, 2019
a779ea0
Merge pull request #1737 from nathanhourt/issue-1506
nathanielhourt May 7, 2019
31f28a2
remove operator== overload from htlc and withdraw objects
oxarbitrage May 7, 2019
55098b8
add more_data struct to full_account
oxarbitrage May 7, 2019
d10f970
change for_eachs to for, populate more_data flags, remove find
oxarbitrage May 7, 2019
3aba3f7
have 2 limit options for get_full_accounts for vector accounts and li…
oxarbitrage May 8, 2019
64e1576
Merge pull request #1750 from bitshares/fix-sonar
pmconrad May 8, 2019
d1c20e7
Switched to boost endian conversion
pmconrad Mar 3, 2019
737a7d0
Fix include order
pmconrad Mar 3, 2019
faf39f2
Use proper serialization for P2P message header
pmconrad Mar 7, 2019
8afd0bc
Removed unused hash methods
pmconrad Mar 19, 2019
2fd3db2
refactor get_proposed_transactions
oxarbitrage May 8, 2019
c20c325
separate htlc and withdraws in from and to
oxarbitrage May 8, 2019
f95d5e5
_hash endianness fixes
pmconrad Mar 18, 2019
e6c9374
Fixed endianness in block_database index file
pmconrad Apr 10, 2019
22ee874
Bump fc
pmconrad May 8, 2019
445c6d4
move additional data computation outside loops
oxarbitrage May 8, 2019
413b9cf
add get_call_orders_by_account api call
oxarbitrage May 8, 2019
4eeb4d3
remove unsigned warnings
oxarbitrage May 8, 2019
bda09a0
move additional data logic back to inside loops as suggested by abit
oxarbitrage May 9, 2019
66c0f40
do proposal index in 1 line
oxarbitrage May 9, 2019
65d5180
change to withdraws_to for consistency, wrap long line
oxarbitrage May 9, 2019
38c3cef
add start argument to get_call_orders_by_account
oxarbitrage May 9, 2019
cd504f5
add get_settle_orders_by_account
oxarbitrage May 9, 2019
ce709f9
add get_assets_by_issuer api call
oxarbitrage May 9, 2019
ed53cb0
move back proposal index outside of the loop
oxarbitrage May 10, 2019
0968f95
fix c&p errors
oxarbitrage May 10, 2019
f26e560
Fix a compiler warning
abitmore May 10, 2019
8994995
remove by_issuer_and_id index
oxarbitrage May 10, 2019
beb1e8d
Replace fc uint128 with boost cpp_int in db_market
abitmore May 10, 2019
976b56b
paginate get_call_orders_by_account by asset_id
oxarbitrage May 10, 2019
d07c374
make start optional in htlc api calls
oxarbitrage May 10, 2019
dbb1fed
undo d07c374
oxarbitrage May 10, 2019
773615e
Merge pull request #1752 from bitshares/fix-compiler-warning
abitmore May 12, 2019
4e98557
Merge pull request #1714 from pmconrad/1196_serialization
abitmore May 12, 2019
a57b6b1
added .gitattributes
jmjatlanta May 13, 2019
efc8181
add test cases
oxarbitrage May 13, 2019
2d5a242
only change line endings for genesis.json
jmjatlanta May 14, 2019
f8a9691
Build with c++14
jmjatlanta Mar 22, 2019
84ffba0
Remove cmake references to c++11
jmjatlanta May 16, 2019
0358f28
Merge pull request #1749 from oxarbitrage/issue1654
oxarbitrage May 16, 2019
6a57bd9
Merge pull request #1756 from bitshares/jmj_1754
jmjatlanta May 17, 2019
277b6eb
get_accounts return null if account does not exist
oxarbitrage May 19, 2019
e300264
add should_throw option to get_account_from_string
oxarbitrage May 19, 2019
049043c
add changes to get_assets and get_full_accounts
oxarbitrage May 20, 2019
084b984
fix broken test case
oxarbitrage May 20, 2019
490de8d
Merge pull request #1668 from bitshares/jmj_847
abitmore May 21, 2019
6f8a393
Update code to adapt FC websocket changes
abitmore Apr 3, 2019
6e44ea5
Fix signals handling in CLI
abitmore May 7, 2019
1ce3563
Bump FC
abitmore May 10, 2019
57ad9d5
Handle SIGQUIT signal in CLI
abitmore May 12, 2019
9dd74ce
Do not sleep when CLI got SIGINT
abitmore May 13, 2019
9bc92ec
Fix wallet.cpp due to API changes in FC
abitmore May 21, 2019
f71cb2c
Merge pull request #1765 from oxarbitrage/issue1734
abitmore May 24, 2019
a45acec
Test case for market fee sharing percent
abitmore May 25, 2019
0ffbaa7
Check market fee sharing percent
abitmore May 25, 2019
03898d1
Merge pull request #1775 from bitshares/fix-reward-percent
abitmore May 27, 2019
e06c776
Merge release into develop
abitmore May 27, 2019
2389c81
Bump FC to include websocket client fix
abitmore May 27, 2019
4194083
Merge pull request #1778 from bitshares/merge-release-to-develop
abitmore May 27, 2019
14e0f17
Merge pull request #1695 from bitshares/pr-1690-shared-ws-connection-ptr
abitmore May 28, 2019
827068c
Fix #1772 by decprecating cli_wallet -H
pmconrad May 28, 2019
2d9135f
Externalized some API templates
pmconrad May 10, 2019
26f039b
Externalize serialization of blocks, tx, ops
pmconrad May 11, 2019
5b3efc3
Externalized db objects
pmconrad May 13, 2019
1a61e43
Externalized genesis serialization
pmconrad May 14, 2019
ccd2b3c
Externalized serialization in protocol library
pmconrad May 19, 2019
edbb245
Separate exception declaration and implementation
pmconrad May 20, 2019
90efe68
Bumped fc
pmconrad May 28, 2019
726ce95
Deprecate -r instead of -H
pmconrad May 29, 2019
6c630f6
Attempt to mitigate effects of duplicate websocket_server instances
pmconrad May 29, 2019
4bc8339
Merge pull request #1782 from bitshares/1772_http_server
pmconrad May 31, 2019
5e82973
updates based on review comments
manikey123 Jun 2, 2019
74d4a0e
Merge branch 'develop' into 783_issue
manikey123 Jun 2, 2019
541e6be
removing same declaration issue
manikey123 Jun 2, 2019
6ba7533
Removed duplicates in files
manikey123 Jun 3, 2019
67d4b98
updating indent
manikey123 Jun 3, 2019
285d64d
Undo superfluous change
pmconrad Jun 4, 2019
2594a92
Merge pull request #1768 from pmconrad/1738_compile_time
pmconrad Jun 4, 2019
eb4e92e
fix required-participation witness plugin option
oxarbitrage Jun 7, 2019
7776c19
Protect SIGQUIT handlers with ifdef to fix windows build
pmconrad Jun 8, 2019
f28d9bc
add checks and warnings
oxarbitrage Jun 8, 2019
0bdf4d6
do review suggestions
oxarbitrage Jun 8, 2019
c9d891f
Merge pull request #1788 from pmconrad/fix_sigquit
pmconrad Jun 10, 2019
a2399ad
Merge pull request #1673 from manikey123/783_issue
pmconrad Jun 11, 2019
75229b4
wrap long lines in witness.cpp file
oxarbitrage Jun 11, 2019
a1394f6
extend static_variant with is_type() method
crypto-ape Jun 11, 2019
7c4b5db
Merge pull request #1787 from oxarbitrage/issue1786
oxarbitrage Jun 12, 2019
cac547a
update comment
oxarbitrage Jun 12, 2019
230b02b
Merge pull request #1793 from bitshares/oxarbitrage-patch-4
abitmore Jun 13, 2019
fa4c324
fix duplicate results in get_key_references
oxarbitrage Jun 13, 2019
5959597
bump fc
crypto-ape Jun 14, 2019
99252bd
Merge pull request #1792 from crypto-ape/issue_1769-extend_static_var…
oxarbitrage Jun 14, 2019
2f7c2ea
Merge pull request #1795 from oxarbitrage/issue1209
oxarbitrage Jun 14, 2019
77bd51e
Use debug logging level in database_api_impl
abitmore Jun 15, 2019
9adf0d6
Merge pull request #1799 from bitshares/abitmore-patch-1
abitmore Jun 16, 2019
980ce9e
Slightly improve market fee sharing performance
abitmore Jun 16, 2019
35cf7d6
Merge pull request #1801 from bitshares/mkt-fee-share-perf
abitmore Jun 17, 2019
b8f8591
Safer way to handle unlock command of cli_wallet #1171
cogutvalera Jun 17, 2019
9cf1006
Merge pull request #1382 from cogutvalera/issue_1171
abitmore Jun 18, 2019
71fbb65
Add set_auto_subscription API
abitmore Apr 24, 2019
9cbbd67
Reflect set_auto_subscription API
abitmore Apr 24, 2019
294f6f8
Fix subscription key collision
abitmore Apr 24, 2019
6355a43
Fix auto-subscription issue in lookup_accounts API
abitmore Apr 24, 2019
30b22e2
Update disable_notify_all_test and add comments
abitmore Apr 24, 2019
6901250
Add subscription tests for get_accounts and lookup_accounts
abitmore Apr 24, 2019
b079d5a
Add subscription tests for get_assets
abitmore Apr 24, 2019
2310367
No longer subscribe to keys or addresses
abitmore Apr 25, 2019
247da40
Use boost preprocessor macros in subscription test
abitmore Apr 25, 2019
271ee7e
Remove trailing white spaces
abitmore Apr 25, 2019
c2c4f72
Add tests for set_auto_subscription API
abitmore Apr 25, 2019
94a46c0
Fix lookup_accounts subscription
abitmore May 24, 2019
8e2764b
Update comments for get_subscription_key function
abitmore Jun 20, 2019
02a2eea
Add test case for subscription key collision issue
abitmore Jun 20, 2019
927e680
Disallow temp-account to withdraw vested balance
abitmore Jun 18, 2019
142f2f6
Revert "wallet compatibility issue"
abitmore Jun 20, 2019
5e92c13
Wrap long lines, remove trailing white spaces
abitmore Jun 20, 2019
d0e6757
Update code style
abitmore Jun 20, 2019
b6d4e24
Merge pull request #1815 from bitshares/revert-1323-issue1307
abitmore Jun 20, 2019
987298e
Merge pull request #1813 from bitshares/fix-temp-account-vesting
abitmore Jun 21, 2019
173ff3d
Separate declaration + instantiation macros for external serializatio…
pmconrad Jun 21, 2019
faa5d77
size_t fix for mac
jmjatlanta Jun 21, 2019
1075401
Get rid of default max_depth completely
pmconrad Jun 21, 2019
681d5db
Removed more default arguments
pmconrad Jun 21, 2019
de4988d
Merge pull request #1817 from bitshares/jmj_1816
jmjatlanta Jun 21, 2019
08a49e8
Merge pull request #1818 from pmconrad/fix_external_serialization
jmjatlanta Jun 21, 2019
c096aa8
Merge pull request #1731 from bitshares/pr-726-auto-subscribe
jmjatlanta Jun 21, 2019
2e7dcc8
make cli_wallet rpc logging work
jmjatlanta Jan 14, 2019
b146344
Fix colors, logging directory
jmjatlanta Jan 15, 2019
12eccf5
Move logging setup to separate method
jmjatlanta Jan 22, 2019
a2e3e61
fix indentation in setup_logging()
oxarbitrage Jun 20, 2019
06a2c10
add logging command line options
oxarbitrage Jun 20, 2019
7e1a624
Fix conflict in cli_wallet main.cpp
jmjatlanta Jun 21, 2019
eb91d4e
add allowed log level values
oxarbitrage Jun 21, 2019
9e405e0
Merge pull request #1528 from bitshares/jmj_1149
oxarbitrage Jun 21, 2019
649709f
small refactor of cli_wallet to get rid of transaction expiration con…
crypto-ape Jun 26, 2019
c2960ff
Moved undo_point forward to MAX_UNDO_HISTORY
pmconrad Jun 26, 2019
5088496
add htlc parameters to developer genesis
oxarbitrage Jun 26, 2019
416458f
Merge pull request #1811 from crypto-ape/cli_wallet-transaction_defau…
pmconrad Jun 27, 2019
49d8e94
Merge pull request #1832 from bitshares/1703_enable_undo_earlier
pmconrad Jun 27, 2019
725dff1
Merge pull request #1833 from bitshares/oxarbitrage-patch-1
pmconrad Jun 27, 2019
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
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Set the default behavior of genesis.json, in case core.autocrlf is set incorrectly
genesis.json eol=lf
17 changes: 7 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,14 @@ script:
- ccache -s
- programs/build_helpers/buildstep Prepare 1 "sed -i '/tests/d' libraries/fc/CMakeLists.txt"
- programs/build_helpers/buildstep cmake 5 "cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=--coverage -DCMAKE_CXX_FLAGS=--coverage -DBoost_USE_STATIC_LIBS=OFF -DCMAKE_CXX_OUTPUT_EXTENSION_REPLACE=ON ."
- programs/build_helpers/buildstep make.cli_wallet 1600 "programs/build_helpers/make_with_sonar bw-output -j 2 cli_wallet"
- programs/build_helpers/buildstep make.witness_node 300 "programs/build_helpers/make_with_sonar bw-output -j 2 witness_node"
- programs/build_helpers/buildstep make.serializer 45 "programs/build_helpers/make_with_sonar bw-output -j 2 js_operation_serializer"
- programs/build_helpers/buildstep make.get_dev_key 10 "programs/build_helpers/make_with_sonar bw-output -j 2 get_dev_key"
- programs/build_helpers/buildstep make.chain_test 900 "programs/build_helpers/make_with_sonar bw-output -j 2 chain_test"
- programs/build_helpers/buildstep make.cli_test 200 "programs/build_helpers/make_with_sonar bw-output -j 2 cli_test"
- programs/build_helpers/buildstep make.perf_test 120 "programs/build_helpers/make_with_sonar bw-output -j 2 performance_test"
- programs/build_helpers/buildstep make.cli_wallet 2200 "programs/build_helpers/make_with_sonar bw-output -j 2 cli_wallet witness_node js_operation_serializer get_dev_key network_mapper"
- programs/build_helpers/buildstep make.chain_test 1000 "make -j 2 chain_test"
- programs/build_helpers/buildstep make.cli_test 200 "make -j 2 cli_test"
- programs/build_helpers/buildstep make.perf_test 120 "make -j 2 performance_test"
- set -o pipefail
- programs/build_helpers/buildstep run.chain_test 240 "libraries/fc/tests/run-parallel-tests.sh tests/chain_test"
- programs/build_helpers/buildstep run.cli_test 30 "libraries/fc/tests/run-parallel-tests.sh tests/cli_test"
- programs/build_helpers/buildstep prepare.sonar 20 'find libraries/[acdenptuw]*/CMakeFiles/*.dir programs/[cdgjsw]*/CMakeFiles/*.dir -type d | while read d; do gcov -o "$d" "${d/CMakeFiles*.dir//}"/*.cpp; done >/dev/null'
- programs/build_helpers/buildstep run.sonar 400 "which sonar-scanner && sonar-scanner || true"
- programs/build_helpers/buildstep run.cli_test 60 "libraries/fc/tests/run-parallel-tests.sh tests/cli_test"
- 'programs/build_helpers/buildstep prepare.sonar 20 "find libraries/[acdenptuw]*/CMakeFiles/*.dir programs/[cdgjsw]*/CMakeFiles/*.dir -type d | while read d; do gcov -o \"\$d\" \"\${d/CMakeFiles*.dir//}\"/*.cpp; done >/dev/null; programs/build_helpers/set_sonar_branch sonar-project.properties" || true'
- 'programs/build_helpers/buildstep run.sonar 1200 "which sonar-scanner && sonar-scanner" || true'
- programs/build_helpers/buildstep end 0
- ccache -s
14 changes: 10 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Defines BitShares library target.
project( BitShares )
cmake_minimum_required( VERSION 2.8.12 )
cmake_minimum_required( VERSION 3.1 )

set( BLOCKCHAIN_NAME "BitShares" )

Expand All @@ -9,6 +9,10 @@ set( GUI_CLIENT_EXECUTABLE_NAME BitShares )
set( CUSTOM_URL_SCHEME "gcs" )
set( INSTALLER_APP_ID "68ad7005-8eee-49c9-95ce-9eed97e5b347" )

set( CMAKE_CXX_STANDARD 14 )
set( CMAKE_CXX_STANDARD_REQUIRED ON )
set( CMAKE_CXX_EXTENSIONS OFF )

# http://stackoverflow.com/a/18369825
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.8)
Expand All @@ -23,7 +27,7 @@ endif()
list( APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules" )

set(CMAKE_EXPORT_COMPILE_COMMANDS "ON")
set(GRAPHENE_EGENESIS_JSON "${CMAKE_CURRENT_SOURCE_DIR}/genesis.json" )
set(GRAPHENE_EGENESIS_JSON "${CMAKE_CURRENT_SOURCE_DIR}/libraries/egenesis/genesis.json" )

#set (ENABLE_INSTALLER 1)
#set (USE_PCH 1)
Expand Down Expand Up @@ -51,6 +55,7 @@ LIST(APPEND BOOST_COMPONENTS thread
chrono
unit_test_framework
context)
# boost::endian is also required, but FindBoost can't handle header-only libs
SET( Boost_USE_STATIC_LIBS ON CACHE STRING "ON or OFF" )

IF( WIN32 )
Expand Down Expand Up @@ -80,6 +85,7 @@ if( WIN32 )
set(CRYPTO_LIB)

if( MSVC )
add_definitions(-DWIN32_LEAN_AND_MEAN)
#looks like this flag can have different default on some machines.
SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /SAFESEH:NO")
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SAFESEH:NO")
Expand Down Expand Up @@ -108,11 +114,11 @@ else( WIN32 ) # Apple AND Linux
if( APPLE )
# Apple Specific Options Here
message( STATUS "Configuring BitShares on OS X" )
set( CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -std=c++11 -stdlib=libc++ -Wall" )
set( CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -stdlib=libc++ -Wall" )
else( APPLE )
# Linux Specific Options Here
message( STATUS "Configuring BitShares on Linux" )
set( CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -std=c++11 -Wall" )
set( CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -Wall" )
if(USE_PROFILER)
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pg" )
endif( USE_PROFILER )
Expand Down
2 changes: 1 addition & 1 deletion Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ PROJECT_NAME = "Bitshares-Core"
# could be handy for archiving the generated documentation or if some version
# control system is used.

PROJECT_NUMBER = "2.0.180823"
PROJECT_NUMBER = "3.0.1"

# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ We recommend building on Ubuntu 16.04 LTS (64-bit)
git submodule sync --recursive
git submodule update --init --recursive

**NOTE:** Versions of [Boost](http://www.boost.org/) 1.57 through 1.69 are supported. Newer versions may work, but
**NOTE:** Versions of [Boost](http://www.boost.org/) 1.58 through 1.69 are supported. Newer versions may work, but
have not been tested. If your system came pre-installed with a version of Boost that you do not wish to use, you may
manually build your preferred version and use it with BitShares by specifying it on the CMake command line.

Expand Down
1 change: 1 addition & 0 deletions libraries/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ add_subdirectory( utilities )
add_subdirectory( app )
add_subdirectory( plugins )
add_subdirectory( wallet )
add_subdirectory( protocol )
134 changes: 74 additions & 60 deletions libraries/app/api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,28 @@
#include <graphene/chain/database.hpp>
#include <graphene/chain/get_config.hpp>
#include <graphene/utilities/key_conversion.hpp>
#include <graphene/chain/protocol/fee_schedule.hpp>
#include <graphene/protocol/fee_schedule.hpp>
#include <graphene/chain/confidential_object.hpp>
#include <graphene/chain/market_object.hpp>
#include <graphene/chain/transaction_object.hpp>
#include <graphene/chain/transaction_history_object.hpp>
#include <graphene/chain/withdraw_permission_object.hpp>
#include <graphene/chain/worker_object.hpp>

#include <fc/crypto/hex.hpp>
#include <fc/rpc/api_connection.hpp>
#include <fc/thread/future.hpp>

template class fc::api<graphene::app::block_api>;
template class fc::api<graphene::app::network_broadcast_api>;
template class fc::api<graphene::app::network_node_api>;
template class fc::api<graphene::app::history_api>;
template class fc::api<graphene::app::crypto_api>;
template class fc::api<graphene::app::asset_api>;
template class fc::api<graphene::app::orders_api>;
template class fc::api<graphene::debug_witness::debug_api>;
template class fc::api<graphene::app::login_api>;


namespace graphene { namespace app {

login_api::login_api(application& a)
Expand Down Expand Up @@ -317,7 +329,8 @@ namespace graphene { namespace app {
{
FC_ASSERT( _app.chain_database() );
const auto& db = *_app.chain_database();
FC_ASSERT( limit <= 100 );
uint64_t api_limit_get_account_history=_app.get_options().api_limit_get_account_history;
FC_ASSERT( limit <= api_limit_get_account_history );
vector<operation_history_object> result;
account_id_type account;
try {
Expand Down Expand Up @@ -353,7 +366,8 @@ namespace graphene { namespace app {
{
FC_ASSERT( _app.chain_database() );
const auto& db = *_app.chain_database();
FC_ASSERT( limit <= 100 );
uint64_t api_limit_get_account_history_operations=_app.get_options().api_limit_get_account_history_operations;
FC_ASSERT(limit <= api_limit_get_account_history_operations);
vector<operation_history_object> result;
account_id_type account;
try {
Expand Down Expand Up @@ -392,7 +406,8 @@ namespace graphene { namespace app {
{
FC_ASSERT( _app.chain_database() );
const auto& db = *_app.chain_database();
FC_ASSERT(limit <= 100);
uint64_t api_limit_get_relative_account_history=_app.get_options().api_limit_get_relative_account_history;
FC_ASSERT(limit <= api_limit_get_relative_account_history);
vector<operation_history_object> result;
account_id_type account;
try {
Expand All @@ -402,7 +417,7 @@ namespace graphene { namespace app {
if( start == 0 )
start = stats.total_ops;
else
start = min( stats.total_ops, start );
start = std::min( stats.total_ops, start );

if( start >= stop && start > stats.removed_ops && limit > 0 )
{
Expand Down Expand Up @@ -431,7 +446,8 @@ namespace graphene { namespace app {

history_operation_detail history_api::get_account_history_by_operations(const std::string account_id_or_name, vector<uint16_t> operation_types, uint32_t start, unsigned limit)
{
FC_ASSERT(limit <= 100);
uint64_t api_limit_get_account_history_by_operations=_app.get_options().api_limit_get_account_history_by_operations;
FC_ASSERT(limit <= api_limit_get_account_history_by_operations);
history_operation_detail result;
vector<operation_history_object> objs = get_relative_account_history(account_id_or_name, start, limit, limit + start - 1);
std::for_each(objs.begin(), objs.end(), [&](const operation_history_object &o) {
Expand Down Expand Up @@ -530,82 +546,79 @@ namespace graphene { namespace app {

// asset_api
asset_api::asset_api(graphene::app::application& app) :
_db( *app.chain_database()),
database_api( std::ref(*app.chain_database()), &(app.get_options())
) { }
_app(app),
_db( *app.chain_database()),
database_api( std::ref(*app.chain_database()), &(app.get_options())
) { }
asset_api::~asset_api() { }

vector<account_asset_balance> asset_api::get_asset_holders( std::string asset, uint32_t start, uint32_t limit ) const {
FC_ASSERT(limit <= 100);

asset_id_type asset_id = database_api.get_asset_id_from_string( asset );
uint64_t api_limit_get_asset_holders=_app.get_options().api_limit_get_asset_holders;
FC_ASSERT(limit <= api_limit_get_asset_holders);
asset_id_type asset_id = database_api.get_asset_id_from_string( asset );
const auto& bal_idx = _db.get_index_type< account_balance_index >().indices().get< by_asset_balance >();
auto range = bal_idx.equal_range( boost::make_tuple( asset_id ) );

const auto& bal_idx = _db.get_index_type< account_balance_index >().indices().get< by_asset_balance >();
auto range = bal_idx.equal_range( boost::make_tuple( asset_id ) );
vector<account_asset_balance> result;

vector<account_asset_balance> result;

uint32_t index = 0;
for( const account_balance_object& bal : boost::make_iterator_range( range.first, range.second ) )
{
if( result.size() >= limit )
break;
uint32_t index = 0;
for( const account_balance_object& bal : boost::make_iterator_range( range.first, range.second ) )
{
if( result.size() >= limit )
break;

if( bal.balance.value == 0 )
continue;
if( bal.balance.value == 0 )
continue;

if( index++ < start )
continue;
if( index++ < start )
continue;

const auto account = _db.find(bal.owner);
const auto account = _db.find(bal.owner);

account_asset_balance aab;
aab.name = account->name;
aab.account_id = account->id;
aab.amount = bal.balance.value;
account_asset_balance aab;
aab.name = account->name;
aab.account_id = account->id;
aab.amount = bal.balance.value;

result.push_back(aab);
}
result.push_back(aab);
}

return result;
return result;
}
// get number of asset holders.
int asset_api::get_asset_holders_count( std::string asset ) const {
const auto& bal_idx = _db.get_index_type< account_balance_index >().indices().get< by_asset_balance >();
asset_id_type asset_id = database_api.get_asset_id_from_string( asset );
auto range = bal_idx.equal_range( boost::make_tuple( asset_id ) );

const auto& bal_idx = _db.get_index_type< account_balance_index >().indices().get< by_asset_balance >();
asset_id_type asset_id = database_api.get_asset_id_from_string( asset );
auto range = bal_idx.equal_range( boost::make_tuple( asset_id ) );
int count = boost::distance(range) - 1;

int count = boost::distance(range) - 1;

return count;
return count;
}
// function to get vector of system assets with holders count.
vector<asset_holders> asset_api::get_all_asset_holders() const {
vector<asset_holders> result;
vector<asset_id_type> total_assets;
for( const asset_object& asset_obj : _db.get_index_type<asset_index>().indices() )
{
const auto& dasset_obj = asset_obj.dynamic_asset_data_id(_db);

vector<asset_holders> result;

vector<asset_id_type> total_assets;
for( const asset_object& asset_obj : _db.get_index_type<asset_index>().indices() )
{
const auto& dasset_obj = asset_obj.dynamic_asset_data_id(_db);

asset_id_type asset_id;
asset_id = dasset_obj.id;
asset_id_type asset_id;
asset_id = dasset_obj.id;

const auto& bal_idx = _db.get_index_type< account_balance_index >().indices().get< by_asset_balance >();
auto range = bal_idx.equal_range( boost::make_tuple( asset_id ) );
const auto& bal_idx = _db.get_index_type< account_balance_index >().indices().get< by_asset_balance >();
auto range = bal_idx.equal_range( boost::make_tuple( asset_id ) );

int count = boost::distance(range) - 1;
int count = boost::distance(range) - 1;

asset_holders ah;
ah.asset_id = asset_id;
ah.count = count;
asset_holders ah;
ah.asset_id = asset_id;
ah.count = count;

result.push_back(ah);
}
result.push_back(ah);
}

return result;
return result;
}

// orders_api
Expand All @@ -622,8 +635,9 @@ namespace graphene { namespace app {
optional<price> start,
uint32_t limit )const
{
FC_ASSERT( limit <= 101 );
auto plugin = _app.get_plugin<grouped_orders_plugin>( "grouped_orders" );
uint64_t api_limit_get_grouped_limit_orders=_app.get_options().api_limit_get_grouped_limit_orders;
FC_ASSERT( limit <= api_limit_get_grouped_limit_orders );
auto plugin = _app.get_plugin<graphene::grouped_orders::grouped_orders_plugin>( "grouped_orders" );
FC_ASSERT( plugin );
const auto& limit_groups = plugin->limit_order_groups();
vector< limit_order_group > result;
Expand Down
Loading