Compare commits

...

292 commits

Author SHA1 Message Date
pbattu123
f3bf2db959 sync issue fixes 2020-02-07 16:06:12 -04:00
pbattu123
fe07bf0e2c Merge branch 'master' of github.com:peerplays-network/peerplays 2020-02-07 16:02:07 -04:00
pbattu123
580bdf7c47 resolve conflicts and point fc to right commit 2020-01-22 09:30:14 -04:00
pbattu123
51fd7d16ee
Merge pull request #255 from peerplays-network/hf-update
Set hardfork date to Jan5th on TESTNET
2019-12-24 12:03:10 -04:00
pbattu123
d52f9fbb59 Set hardfork date to Jan5th on TESTNET 2019-12-24 10:46:27 -04:00
pbattu123
b7cd99c35f
Merge pull request #253 from peerplays-network/GPOS-1
GPOS-1, Testnet sync issue fix
2019-12-23 11:39:50 -04:00
pbattu123
b6fc207160 gpos tests fix 2019-12-20 22:16:09 -04:00
pbattu123
054f06adc7 Beatrice hot fix(sync issue fix) 2019-12-20 21:55:45 -04:00
pbattu123
26886cc7d5 avoid wlog as it filling up space 2019-12-17 12:13:46 -04:00
pbattu123
a7937bf4ae
Merge pull request #248 from peerplays-network/GRPH-170
Update hardfork date for TESTNET, sync fc module and update logs
2019-12-17 10:18:26 -04:00
pbattu123
a4d399d6cc Update hardfork date for TESTNET, sync fc module and update logs 2019-12-17 09:18:34 -04:00
pbattu123
9746e74885
Merge pull request #246 from peerplays-network/develop
Merge GPOS feature and Graphene updates into TESTNET
2019-12-16 14:10:29 -04:00
pbattu123
b1f2ba5ba6
Merge pull request #243 from peerplays-network/feature/BLOCKBACK-186-Bug-Fix
[BLOCKBACK-186] Withdraw vesting bug fix
2019-12-13 16:25:43 -04:00
Sandip Patel
e7af03a987 Added unit test 2019-12-13 13:11:03 +05:30
Sandip Patel
b57220a180 Fixed withdraw vesting bug 2019-12-12 14:14:31 +05:30
pbattu123
f1fef49373
Merge pull request #237 from peerplays-network/BLOCKBACK-183
BLOCKBACK-183 GPOS: Votes consideration on GPOS activation
2019-12-08 21:42:26 -04:00
pbattu123
c98c7bcb94 Updated gpos/voting_tests 2019-12-07 23:41:22 -04:00
pbattu123
b5249ac2b1 Bump fc version 2019-12-07 22:15:53 -04:00
pbattu123
383b8d0b02 fix gpos tests 2019-12-07 17:06:48 -04:00
pbattu123
91e8dca261
Merge pull request #239 from peerplays-network/BLOCKCBACK-187
bump fc version BB-187
2019-12-07 13:52:32 -04:00
pbattu123
91c65b9845
Merge pull request #234 from peerplays-network/BLOCKBACK-186
BLOCKBACK-186 fix: GPOS
2019-12-07 13:51:58 -04:00
pbattu123
e0db30291c bump fc version 2019-12-06 16:35:59 -04:00
pbattu123
3b65288867
Merge pull request #232 from peerplays-network/feature/GRPH-166
[GRPH-166] Fixed chainparameter update proposal issue
2019-12-06 13:04:50 -04:00
pbattu123
70b5a9414f
Merge pull request #90 from peerplays-network/GRPH-46
GRPH-46-Quit_command_cliwallet
2019-12-06 12:33:15 -04:00
pbattu123
067fcd13f7 Votes consideration on GPOS activation 2019-12-06 11:26:49 -04:00
Sandip Patel
d5662ada04 Added log for authorization failure of proposal operations 2019-12-06 11:07:38 +05:30
pbattu123
38bb9226ec Move GPOS withdraw logic to have single transaction(also single fee) and update API 2019-12-05 13:46:13 -04:00
Sandip Patel
2dfaa866ca Fixed chainparameter update proposal issue 2019-12-05 18:53:38 +05:30
Alfredo Garcia
3a2def7311
Merge pull request #137 from peerplays-network/feature/GRPH-92
[GRPH 92] Build optimization
2019-12-03 20:43:50 -03:00
Sandip Patel
e989275414 removed multiple function definition 2019-12-03 19:44:16 +05:30
satyakoneru
9a9c35649b GRPH-46-Quit_command_cliwallet 2019-12-03 19:39:03 +05:30
gladcow
40c2fd8783 fix compilation issues 2019-12-02 17:41:13 +03:00
pbattu123
c49ce31201
Merge pull request #227 from peerplays-network/GRPH-159
GRPH 159
2019-11-29 14:21:45 -04:00
pbattu123
0b2c9dde22 remove default value for extension parameter 2019-11-29 10:15:13 -04:00
Peter Conrad
25458c294d Undo superfluous change 2019-11-29 14:10:40 +03:00
Peter Conrad
854119233a Externalized serialization in protocol library 2019-11-29 14:10:40 +03:00
Peter Conrad
2358149e46 Externalized genesis serialization 2019-11-29 14:10:40 +03:00
Peter Conrad
b3d6058485 Externalized db objects 2019-11-29 14:10:40 +03:00
Peter Conrad
71d8bfd843 Externalize serialization of blocks, tx, ops 2019-11-29 14:10:40 +03:00
Peter Conrad
4df7298a0d Externalized some API templates 2019-11-29 14:10:40 +03:00
Alfredo Garcia
6f0ce36292
Merge pull request #225 from peerplays-network/feature/GRPH-152
[GRPH-152] Allow APIs to be called by account/asset name and id
2019-11-28 15:29:12 -03:00
Sandip Patel
ad5707ed95 Fixed alignment issues 2019-11-28 10:36:26 +05:30
Sandip Patel
41445a8764 Fixed compilation issues 2019-11-26 18:18:42 +05:30
Sandip Patel
a5d8a15728 asset id or name support in all asset APIs 2019-11-26 16:51:20 +05:30
Sandip Patel
7aeaa14bae account name or id support in all database api 2019-11-26 13:50:06 +05:30
pbattu123
fd23d149d6 refer to latest commit of latest-fc branch (#224) 2019-11-25 16:23:42 -04:00
pbattu123
9b7776e301
Merge pull request #220 from peerplays-network/BLOCKBACK-177
issue with withdrawl
2019-11-25 10:51:06 -04:00
pbattu123
0ecf2e8d0e
Merge pull request #222 from peerplays-network/feature/BLOCKBACK-182
[BLOCKBACK-182] set extensions default values
2019-11-25 10:49:25 -04:00
pbattu123
fd2679a888
Merge pull request #223 from peerplays-network/BLOCKBACK-181
BLOCKBACK-181 Update GPOS hardfork date and don't allow GPOS features before hardfork time
2019-11-24 12:21:44 -04:00
pbattu123
e6d3dd0662 Update GPOS hardfork date and don't allow GPOS features before hardfork time 2019-11-23 20:46:17 -04:00
Alfredo Garcia
df4e045128
Merge pull request #218 from peerplays-network/feature/GRPH-150
[GRPH-150] P2P Log files are not created
2019-11-22 16:49:25 -03:00
pbattu123
89a63af930
Merge pull request #221 from peerplays-network/feature/GRPH-49-test-case
Added unit test for empty account history
2019-11-22 09:50:50 -04:00
Sandip Patel
c17d73f11b set extensions default values 2019-11-22 18:46:55 +05:30
Sandip Patel
ae47eb9390 Added unit test for empty account history 2019-11-22 11:49:33 +05:30
pbattu123
9c1e7af9c7 issue with withdrawl 2019-11-21 10:40:39 -04:00
Alfredo Garcia
e7e08169c8
Merge pull request #116 from peerplays-network/GRPH-81
[GRPH-81] Different performance optimization
2019-11-20 13:36:41 -03:00
abitmore
d3b2c4ce95 Simplified code in database::pay_workers() 2019-11-20 14:23:20 +03:00
Sandip Patel
9baf81e7c6 compilation fix 2019-11-14 19:13:57 +05:30
Sandip Patel
ac5d55be0f added new files 2019-11-14 17:05:01 +05:30
Sandip Patel
7a1f1a7293 Logging config parsing issue 2019-11-14 17:02:54 +05:30
Alfredo Garcia
fccd856429
Merge pull request #149 from peerplays-network/feature/GRPH-114
[GRPH-114] Check the attacker/buggy client before updating items ids
2019-11-11 09:50:46 -03:00
Alfredo Garcia
943953c66d
Merge pull request #212 from peerplays-network/develop_gpos
[GRPH-137] Merge gpos into develop
2019-11-08 10:44:00 -03:00
gladcow
d99ef0c1f9 fix global objects usage during replay 2019-11-08 15:42:09 +03:00
abitmore
4f54b13074 Added header inclusions in db_management.cpp 2019-11-08 15:42:09 +03:00
abitmore
6a7d670762 Added FC_ASSERT for dynamic data id of core asset 2019-11-08 15:42:09 +03:00
abitmore
02f6019896 Minor refactory asset_create_evaluator::do_apply() 2019-11-08 15:42:09 +03:00
abitmore
2f6de1f056 Add comments for update_expired_feeds in db_block 2019-11-08 15:42:09 +03:00
abitmore
66f6f26934 Removed unused variable 2019-11-08 15:42:09 +03:00
abitmore
83736ba656 Use getters 2019-11-08 15:42:09 +03:00
abitmore
1939cd127b Added getter for core dynamic data object 2019-11-08 15:42:09 +03:00
abitmore
dcc6902720 Added getter for witness schedule object 2019-11-08 15:42:09 +03:00
abitmore
04102d549c Change static refs to member pointers of db class 2019-11-08 15:39:16 +03:00
abitmore
36e318a503 Improve update_expired_feeds performance #1093 2019-11-08 15:39:16 +03:00
abitmore
e27b074f62 Minor code updates for asset_evaluator.cpp
* changed an `assert()` to `FC_ASSERT()`
* replaced one `db.get(asset_id_type())` with `db.get_core_asset()`
* capture only required variables for lambda
2019-11-08 15:37:46 +03:00
abitmore
ac7ac9f1f2 Minor performance improvement for db_maint 2019-11-08 15:37:46 +03:00
abitmore
cabbd7d070 Use static refs in db_getter for immutable objects 2019-11-08 15:37:46 +03:00
abitmore
01a81554ff Minor performance improvement for price::is_null() 2019-11-08 15:37:46 +03:00
abitmore
8a9d3e7775 Added logging for the old update_expired_feeds bug
The old bug is https://github.com/cryptonomex/graphene/issues/615 .

Due to the bug, `update_median_feeds()` and `check_call_orders()`
will be called when a feed is not actually expired, normally this
should not affect consensus since calling them should not change
any data in the state.

However, the logging indicates that `check_call_orders()` did
change some data under certain circumstances, specifically, when
multiple limit order matching issue (#453) occurred at same block.
* https://github.com/bitshares/bitshares-core/issues/453
2019-11-08 15:37:46 +03:00
Roshan Syed
2f4830a778 Update CI for syncing gitmodules (#216) 2019-11-07 19:13:12 +05:30
Alfredo Garcia
25ab039a58
Merge branch 'develop' into develop_gpos 2019-11-07 08:08:53 -03:00
Sandip Patel
0bcfaa385b Improve account maintenance performance (#130)
* Improve account maintenance performance

* merge fixes

* Fixed merge issue

* Fixed indentations and extra ';'
2019-11-07 11:25:02 +05:30
pbattu123
50b80e9155 update submodule branch to refer to the latest commit on latest-fc branch (#214) 2019-11-07 08:44:42 +05:30
satyakoneru
3e6b9196ce GRPH134- High CPU Issue, websocket changes (#213) 2019-11-06 20:15:15 +05:30
Alfredo Garcia
a07bcad7e8 remove non needed gcc5 changes to dockerfile 2019-11-06 11:10:33 -03:00
Alfredo Garcia
f831f9527f Merge branch 'qa_gpos_18.04' into develop_gpos 2019-11-05 14:34:04 -03:00
Alfredo Garcia
20a9f9b84d
Merge pull request #211 from peerplays-network/feature/BLOCKBACK-162
[BLOCKBACK-162] Fixed spelling issue in error message
2019-11-05 09:00:11 -03:00
Sandip Patel
61fa3918ef Fixed spelling issue 2019-11-05 15:02:38 +05:30
pbattu123
ab780862d3
Merge pull request #205 from peerplays-network/BLOCKBACK-155
[Blockback 155] GPOS - Multiple issues with vote_for_witness
2019-10-31 13:57:31 -03:00
Sandip Patel
fd8659caaf Fixed flag issue 2019-10-31 19:01:50 +05:30
Sandip Patel
e7f65c6760 get_account bug fixed 2019-10-31 15:41:40 +05:30
Sandip Patel
5d36258f0c case 1: Fixed last voting time issue 2019-10-31 15:02:05 +05:30
Sandip Patel
c8db22d481 Added token symbol name in error messages (#204) 2019-10-30 18:29:30 +05:30
Sandip Patel
d5d4fdd6d3 Added token symbol name in error messages 2019-10-30 17:51:02 +05:30
pbattu123
3a817e17ea
Merge pull request #202 from peerplays-network/BLOCKBACK-174
BLOCKBACK- 174 Roll in GPOS votes from 6th sub-period
2019-10-28 14:49:51 -03:00
pbattu123
3f8ac21b1e updated comments to the benefit of reviewer 2019-10-28 12:14:53 -03:00
pbattu123
9f0b23122f comments updated 2019-10-28 10:46:10 -03:00
pbattu123
ac3554ea2e check was already modified 2019-10-27 13:11:58 -03:00
pbattu123
5f1436b8be Fix to roll in GPOS rules, carry votes from 6th sub-period 2019-10-27 12:54:54 -03:00
pbattu123
5caaedd43a
Merge pull request #201 from peerplays-network/fix_flag
Fix update_last_voting_time flag
2019-10-27 12:44:43 -03:00
Alfredo Garcia
7c1966247b adapt gpos_tests to changed flag 2019-10-27 09:10:53 -03:00
Alfredo Garcia
84f30926bc clean newlines gpos_tests 2019-10-27 08:54:37 -03:00
Alfredo Garcia
a80d25f9df fix flag 2019-10-27 08:54:18 -03:00
Alfredo Garcia
aef57f1720
Merge pull request #200 from peerplays-network/feature/BLOCKBACK-166
[BLOCKBACK-166] GPOS - dividend distribution for UIAs
2019-10-26 08:08:27 -03:00
pbattu123
46dab2545c
Merge pull request #193 from peerplays-network/BLOCKBACK-155
BLOCKBACK- 155: allow token holder to vote in each subperiod without unvote
2019-10-25 10:23:24 -03:00
pbattu123
8269c94601
Merge branch 'qa_gpos_18.04' into BLOCKBACK-155 2019-10-25 10:21:55 -03:00
Sandip Patel
a8423f167d Fixed dividend distribution issue and added test case 2019-10-25 16:41:34 +05:30
Alfredo Garcia
e63452cb3c
Merge pull request #199 from peerplays-network/BLOCKBACK_164
BLOCKBACK-164 Eliminate time gap between two consecutive vesting periods
2019-10-25 08:01:56 -03:00
Alfredo Garcia
ed49ab8eea
Merge pull request #190 from peerplays-network/feature/BLOCKBACK-162
[BLOCKBACK-162] Error message correction
2019-10-25 07:04:01 -03:00
pbattu123
bdd1863cf2 updated GPOS hf 2019-10-24 23:53:47 -03:00
pbattu123
22e5dfa502 deleted GPOS specific test suite and updated gpos tests 2019-10-24 15:31:49 -03:00
pbattu123
78787c2a14 eliminate time gap between two consecutive vesting periods 2019-10-24 14:39:01 -03:00
Sandip Patel
69630183f9 removed witness check 2019-10-24 19:24:09 +05:30
pbattu123
f7d7f043ce delete unused variables 2019-10-23 23:18:44 -03:00
pbattu123
cf3b54ece4 unit test changes and also separated GPOS test suite 2019-10-23 23:13:23 -03:00
pbattu123
d6da2963dc resolve merge conflict 2019-10-23 22:15:26 -03:00
pbattu123
3be3fd36bb Merge branch 'BLOCKBACK-155' of https://github.com/peerplays-network/peerplays into BLOCKBACK-155 2019-10-23 18:36:39 -03:00
pbattu123
48d0d88ff0 changes to update last voting time 2019-10-23 18:33:17 -03:00
pbattu123
d4460870bd
Merge branch 'qa_gpos_18.04' into BLOCKBACK-155 2019-10-23 17:57:13 -03:00
pbattu123
39e9557749
Merge pull request #197 from peerplays-network/feature/BLOCKBACK-165
[BLOCKBACK-165] Fixed GPOS vesting factor issue when proxy is set
2019-10-23 17:48:57 -03:00
Sandip Patel
8bbab4c113 Review changes 2019-10-23 18:25:33 +05:30
Sandip Patel
ccdea033f3 Added unit test for proxy voting 2019-10-23 17:41:16 +05:30
Sandip Patel
73829bd97f Fixed GPOS vesting factor issue when proxy is set 2019-10-23 11:56:38 +05:30
pbattu123
0d1c41557d changes to allow user to vote in each sub-period 2019-10-22 10:39:45 -03:00
Sandip Patel
d2a6f6d319 Project name update in Doxyfile (#146) 2019-10-22 18:22:22 +05:30
Sandip Patel
f7c592dd0e Updated FC repository to peerplays-network/peerplays-fc (#189)
Point to fc commit hash 6096e94 [latest-fc branch]
2019-10-21 23:24:20 +05:30
Sandip Patel
0800e2bc67 error message corrections at other places 2019-10-19 16:38:12 +05:30
Sandip Patel
c025f639d7 Fixed few error messages 2019-10-19 10:58:56 +05:30
Alfredo Garcia
8c188bd53f merge gpos to develop (#186)
* issue - 154: Don't allow to vote when vesting balance is 0

* changes to withdraw_vesting feature(for both cdd and GPOS)

* Comments update

* update to GPOS hardfork ref

* fix for get_vesting_balance API call

* braces update

* Create .gitlab-ci.yml

* fixing build errors (#150)

* fixing build errors

vest type correction

* fixing build errors

vest type correction

* fixes 

new Dockerfile

* vesting_balance_type correction

vesting_balance_type changed to normal

* gcc5 support to Dockerfile

gcc5 support to Dockerfile

* Changes to compiple with GCC 7(Ubuntu 18.04)

* changes to have separate methods and single withdrawl fee for multiple vest objects

* 163-fix, Return only non-zero vesting balances

* Revert "Revert "GPOS protocol""

This reverts commit 67616417b7.

* add new line needed to gpos hardfork file

* comment temporally cli_vote_for_2_witnesses until refactor or delete

* fix gpos tests

* fix gitlab-ci conflict
2019-10-17 22:09:44 +05:30
Sandip Patel
e3b2459de4 Adjust p2p log level (#180) 2019-10-16 20:57:39 +05:30
Sandip Patel
40534446da [GRPH-106] Added voting tests (#136)
* Added more voting tests

* Added additional option
2019-10-10 21:29:01 +05:30
Sandip Patel
ec33f0cc07 [GRPH-3] Additional cli tests (#155)
* Additional cli tests

* Compatible with latest fc changes

* Fixed Spacing issues
2019-10-10 21:24:12 +05:30
pbattu123
7b1d31e8d2
Merge pull request #172 from peerplays-network/graphene-release1
Graphene Updates Release 1
2019-10-09 20:58:46 -03:00
pbattu123
d5dffa64b7
Merge pull request #163 from peerplays-network/153/fix-add-on
Changes to have separate withdraw_vesting methods and single withdraw fee for multiple objects
2019-10-06 16:39:07 -03:00
pbattu123
3f6b7abadb
Merge pull request #164 from peerplays-network/jira-163-fix
163-fix, Return only non-zero vesting balances
2019-10-06 16:38:52 -03:00
Sandip Patel
e1a6e67e16 Point to PBSA/peerplays-fc commit f13d063 (#167) 2019-10-04 20:42:37 +05:30
Roshan Syed
d2c82cf68f Support/gitlab develop (#168)
* Added code_quality to CI

* Update .gitlab-ci.yml
2019-10-04 19:22:12 +05:30
pbattu123
c73d0a338a 163-fix, Return only non-zero vesting balances 2019-10-03 22:22:21 -03:00
pbattu123
d65f20a89f changes to have separate methods and single withdrawl fee for multiple vest objects 2019-10-03 16:38:40 -03:00
Roshan Syed
1a41b5cbdd Added sonarcloud analysis (#158) 2019-10-01 13:52:54 -04:00
Roshan Syed
2dcb96b305 Added Sonarcloud code_quality to CI (#159) 2019-10-01 13:45:09 -04:00
Sandip Patel
e995744716 proposal fail_reason bug fixed (#157) 2019-09-30 18:21:05 -04:00
pbattu123
f1eb625df8 Changes to compiple with GCC 7(Ubuntu 18.04) 2019-09-30 00:27:21 -03:00
gladcow
caa3d2468c use random port numbers in app_test (#154) 2019-09-27 10:58:49 -04:00
Bobinson K B
7fae375e0f
fixing build errors (#150)
* fixing build errors

vest type correction

* fixing build errors

vest type correction

* fixes 

new Dockerfile

* vesting_balance_type correction

vesting_balance_type changed to normal

* gcc5 support to Dockerfile

gcc5 support to Dockerfile
2019-09-26 11:41:28 -04:00
Bobinson K B
b8cbdc56fc
Merge pull request #151 from peerplays-network/support/gitlab-develop
Added cli_test to CI
2019-09-26 08:58:48 -04:00
Roshan Syed
2d6f8c48a7 Added cli_test to CI 2019-09-25 13:51:05 -03:00
Roshan Syed
db01f313e5
Create .gitlab-ci.yml 2019-09-25 10:30:15 -03:00
Bobinson K B
e377478c34
Merge pull request #139 from peerplays-network/feature/GRPH-94
Improve block generation performance
2019-09-24 13:51:46 -04:00
Wei Yang
83b19d0b84 node.cpp: Check the attacker/buggy client before updating items ids
The peer is an attacker or buggy, which means the item_hashes_received is
not correct.

Move the check before updating items ids to save some time in this case.
2019-09-24 13:35:48 +03:00
Bobinson K B
282ec7061b
Merge pull request #147 from peerplays-network/feature/GRPH-95
Enhancement for session undo storage
2019-09-23 12:23:44 -04:00
Bobinson K B
1cb494e686
Merge pull request #140 from peerplays-network/feature/GRPH-111
Added get_asset_count API
2019-09-23 09:55:27 -04:00
Peter Conrad
819e1d25b2 Throw for deep nesting 2019-09-23 15:38:01 +03:00
Peter Conrad
8544896e6c Allow sufficient space for new undo_session 2019-09-23 15:38:01 +03:00
Bobinson K B
857a30d69c
Merge pull request #67 from peerplays-network/GRPH-50-network_broadcast_api-fix-v2
network broadcast api fix, version 2
2019-09-23 08:25:16 -04:00
pbattu123
af47ed0625
Merge pull request #143 from peerplays-network/issue/154-fix
Issue/154 fix
2019-09-22 13:25:12 -03:00
pbattu123
a7df686ebe braces update 2019-09-21 13:08:33 -03:00
pbattu123
4a72f943e8 fix for get_vesting_balance API call 2019-09-21 13:04:43 -03:00
pbattu123
79dc2f4dde
Merge pull request #141 from peerplays-network/BLOCKBACK-153
Issue Blockback 153 fix
2019-09-21 12:56:40 -03:00
pbattu123
9ec835b361
Merge pull request #95 from peerplays-network/issue-154
issue - 157: Don't allow to vote when the vesting balance is 0
2019-09-21 12:54:17 -03:00
Miha Čančula
4586cc5df5
Remove leftover comment from merge 2019-09-21 17:37:43 +02:00
Miha Čančula
97f9875918
Merge branch 'develop' into GRPH-50-network_broadcast_api-fix-v2 2019-09-21 17:17:19 +02:00
pbattu123
8e1c038558 update to GPOS hardfork ref 2019-09-20 16:58:06 -03:00
pbattu123
b358241e43 Comments update 2019-09-20 14:03:59 -03:00
pbattu123
2a3d8a4c66 changes to withdraw_vesting feature(for both cdd and GPOS) 2019-09-20 11:32:07 -03:00
abitmore
106824c62a No longer extract public keys before pushing a trx
and removed unused new added constructor and _get_signature_keys() function from signed_transaction struct
2019-09-20 16:27:26 +03:00
Sandip Patel
aa31de5d44 Added get_asset_count API 2019-09-20 17:51:43 +05:30
abitmore
2dfb67e16e Updated transaction::signees to mutable
and
* updated get_signature_keys() to return a const reference,
* get_signature_keys() will update signees on first call,
* modified test cases and wallet.cpp accordingly,
* no longer construct a new signed_transaction object before pushing
2019-09-20 14:10:24 +03:00
abitmore
c110508766 Dereference chain_database shared_ptr 2019-09-20 13:46:34 +03:00
abitmore
56a6f8b732 Extract public keys before pushing a transaction 2019-09-20 13:44:15 +03:00
abitmore
12105ab6e5 Skip auth check when pushing self-generated blocks 2019-09-20 13:37:23 +03:00
Bobinson K B
fba10888cc
Merge pull request #131 from peerplays-network/feature/GRPH-93-v2
index type addition for performance improvement, version 2
2019-09-20 06:36:30 -04:00
Alfredo Garcia
2e85219ca4
Merge pull request #109 from peerplays-network/feature/GRPH-86
[GRPH-86] fix duplicate ops returned in get_account_history
2019-09-18 14:57:22 -03:00
Miha Čančula
94157497bb
Merge branch 'develop' into feature/GRPH-93-v2 2019-09-18 18:19:17 +02:00
Miha Čančula
7bc47a6bc8
Update to fixed version of fc 2019-09-18 17:20:06 +02:00
Miha Čančula
499a5fc33e
Merge branch 'develop' into GRPH-50-network_broadcast_api-fix-v2 2019-09-18 16:36:42 +02:00
Sandip Patel
5a00e4fab3 Removed unrelated comment 2019-09-18 10:17:44 +05:30
Sandip Patel
12ef667312 Fixed account_history_pagination test 2019-09-18 10:16:16 +05:30
Sandip Patel
dfba08536b Fixed duplicate ops returned from get_account_history 2019-09-18 10:16:16 +05:30
Alfredo Garcia
96161db8a5
Merge pull request #101 from peerplays-network/GRPH-75
[GRPH-75] node restore improvments
2019-09-17 21:45:42 -03:00
Alfredo Garcia
bada09d7d0
Merge branch 'develop' into GRPH-75 2019-09-17 21:10:20 -03:00
Alfredo Garcia
ca4a02da21
Merge pull request #100 from peerplays-network/feature/GRPH-79
GRPH-79 Enhancing Proposal Information
2019-09-17 21:09:46 -03:00
Alfredo Garcia
88d90c327b
Merge branch 'develop' into feature/GRPH-79 2019-09-17 20:19:37 -03:00
Alfredo Garcia
19a9641177
Merge pull request #110 from peerplays-network/GRPH-73-fix-block-id-forks
[GRPH-73] fix block id forks
2019-09-17 20:18:24 -03:00
Alfredo Garcia
589005515b
Merge branch 'develop' into GRPH-73-fix-block-id-forks 2019-09-17 19:32:20 -03:00
Alfredo Garcia
4914e74770
Merge branch 'develop' into feature/GRPH-79 2019-09-17 17:38:37 -03:00
Alfredo Garcia
d911b3db69
Merge branch 'develop' into GRPH-75 2019-09-17 15:53:18 -03:00
Alfredo Garcia
44137a30a4
Merge pull request #111 from peerplays-network/feature/GRPH-88
GRPH-88 - Fixed integer overflow issue
2019-09-17 15:48:33 -03:00
Alfredo Garcia
1f4de92d62
Merge branch 'develop' into feature/GRPH-88 2019-09-17 15:01:36 -03:00
Miha Čančula
6850be492d
Fix compilation in debug mode 2019-09-17 18:42:03 +02:00
Miha Čančula
2dc79e8674
Merge branch 'develop' into feature/GRPH-93 2019-09-17 15:26:33 +02:00
Bobinson K B
1f43c2fa99
Merge pull request #115 from peerplays-network/feature/GRPH-80
minor performance improvement
2019-09-17 04:33:05 -04:00
Sandip Patel
5ce9f8c8de Added comment 2019-09-17 13:28:22 +05:30
Sandip Patel
cde18342da minor performance improvement 2019-09-17 13:28:22 +05:30
Miha Čančula
4b5076b2e9
Merge branch 'develop' into GRPH-73-fix-block-id-forks 2019-09-16 18:51:53 +02:00
Miha Čančula
67362be337
Merge branch 'develop' into feature/GRPH-93 2019-09-16 10:15:40 +02:00
Bobinson K B
ddc41d680b
Merge pull request #120 from peerplays-network/GRPH-89
Better object database handling
2019-09-12 16:28:57 -04:00
Alfredo Garcia
755383c121
Merge branch 'develop' into feature/GRPH-88 2019-09-12 16:07:36 -03:00
Ronak Patel
9fc07f191f Fixed test failures and compilation issue 2019-09-12 19:13:36 +05:30
John Jones
b3c64c83b2 prevent segfault when destructing application obj 2019-09-12 14:59:18 +03:00
cifer
f1ffd52e1e supplement more comments on database::_opened variable 2019-09-12 14:59:18 +03:00
cifer
0bcf6d4d65 Fix #436 object_database created outside of witness data directory 2019-09-12 14:59:18 +03:00
Bobinson K B
0bdbd64c00
Merge pull request #121 from peerplays-network/GRPH-4-update-submodule
Update the FC submodule
2019-09-11 13:34:45 -04:00
Roshan Syed
be60e41766 Updated GitLab CI 2019-09-11 09:53:34 -03:00
Miha Čančula
8cd22ee6a0
Fix undefined references in cli test 2019-09-11 12:04:04 +02:00
Roshan Syed
edec01fb29
Support/gitlab (#123)
* Updated gitlab process
2019-09-10 14:11:12 -03:00
Ronak Patel
646dc2e548 Merged Bitshares PR #1462 and compilation fixes 2019-09-10 18:56:27 +05:30
Miha Čančula
00a38c521e
Update the FC submodule with the changes for GRPH-4 2019-09-10 10:26:05 +02:00
Bobinson K B
9224af57e2
Merge pull request #117 from peerplays-network/feature/GRPH-90
Fix for history ID mismatch issue
2019-09-09 12:45:15 -04:00
Ronak Patel
3510704398 Fix for for history ID mismatch ( Bitshares PR #875 ) 2019-09-09 15:33:47 +05:30
Bobinson K B
b11edaa6a5
Merge pull request #69 from peerplays-network/WASM-49
get_account_history fix
2019-09-07 00:54:39 +05:30
Bobinson K B
f9a3d087ea
Merge pull request #60 from peerplays-network/GRPH-48-Object-Database-18.04
Grph 48 object database 18.04
2019-09-07 00:53:04 +05:30
Bobinson K B
64c05f9b3f
Merge pull request #70 from peerplays-network/GRPH-59-Proposal-failure-handling
Proposal failure handling
2019-09-07 00:52:02 +05:30
Bobinson K B
db8efafc62
Merge pull request #104 from peerplays-network/feature/GRPH-76
Short-cut long sequences of missed blocks
2019-09-07 00:51:12 +05:30
Bobinson K B
6563644264
Merge pull request #91 from peerplays-network/GRPH-51
unit test for bitshares issue #325
2019-09-07 00:50:33 +05:30
Bobinson K B
c1d70bf882
Merge pull request #89 from peerplays-network/GRPH-4
CliWallet_crash_ctrlD
2019-09-07 00:49:45 +05:30
Bobinson K B
ef7fe58139
Merge pull request #98 from peerplays-network/cli_wallet_tests
Cli wallet tests framework
2019-09-07 00:42:58 +05:30
Bobinson K B
2c28d0d49f
Merge pull request #87 from peerplays-network/feature/GRPH-54
Fix for irrelevant signature included issue
2019-09-05 14:03:19 +05:30
Ronak Patel
22eb42e3eb Fixed integer overflow issue 2019-09-04 15:14:18 +05:30
Abit
f732048a6e
Merge pull request #938 from bitshares/fix-block-storing
Store correct block ID when switching forks
2019-09-04 10:54:53 +02:00
Alfredo Garcia
1d1193e6d0 change bitshares to core in message 2019-09-03 14:13:42 -03:00
Srdjan Obucina
a081a8ecba Add missing change 2019-09-03 12:46:47 +02:00
gladcow
7b259ba2d3 exclude second undo_db.enable() call in some cases 2019-09-03 08:07:46 +03:00
Peter Conrad
731338f03c Added test case for broken merge on empty undo_db 2019-09-02 17:19:21 +03:00
Peter Conrad
7d0d61ab43 Fixed undo_database 2019-09-02 17:19:21 +03:00
Peter Conrad
ab382189fe Cut back block_log index file if inconsistent 2019-09-02 17:19:21 +03:00
Peter Conrad
0d108fb8ef Improved consistency check for block_log 2019-09-02 17:19:21 +03:00
Peter Conrad
95a5b57c4f Writing the object_database is now almost atomic 2019-09-02 17:19:21 +03:00
Peter Conrad
b71f20e060 Dont leave _data_dir empty if db is locked 2019-09-02 17:19:21 +03:00
Peter Conrad
c8f8f1a44b Fixed lock detection 2019-09-02 17:19:21 +03:00
Peter Conrad
b45a6ca147 Prevent unsigned integer underflow 2019-09-02 17:19:21 +03:00
Peter Conrad
3bee3f29a2 Log starting block number of replay 2019-09-02 17:19:21 +03:00
Peter Conrad
a0052d4bd3 Enable undo + fork database for final blocks in a replay
Dont remove blocks from block db when popping blocks, handle edge case in replay wrt fork_db, adapted unit tests
2019-09-02 17:19:21 +03:00
Peter Conrad
17417037c6 Moved reindex logic into database / chain_database, make use of additional blocks in block_database
Fixed tests wrt db.open
2019-09-02 17:19:21 +03:00
Peter Conrad
42680456b6 Improved resilience of block database against corruption 2019-09-02 17:19:21 +03:00
Bobinson K B
cdc89c16ee
Merge pull request #97 from peerplays-network/feature/GRPH-61
Increase block creation timeout to 2500ms
2019-09-02 19:20:07 +05:30
Bobinson K B
e44b04df48
Merge pull request #93 from peerplays-network/GRPH-71
Fix failed app_test
2019-09-02 19:16:11 +05:30
Bobinson K B
07249e90bb
Merge pull request #92 from peerplays-network/GRPH-70
[GRPH-70] remove needless find()
2019-09-02 18:38:42 +05:30
Srdjan Obucina
77dd8a9359 GRPH-76 - Short-cut long sequences of missed blocks
Fixes database::update_global_dynamic_data to speed up counting missed blocks.
(This also fixes a minor issue with counting - the previous algorithm would skip missed blocks for the witness who signed the first block after the gap.)
2019-09-02 15:03:00 +02:00
Ronak Patel
b751508404 Merged changes from Bitshares PR 1036 2019-09-02 18:23:19 +05:30
Miha Čančula
a797787f02
Merge branch 'develop' into GRPH-59-Proposal-failure-handling 2019-09-02 11:14:48 +02:00
Miha Čančula
43bfc3edc3
Adjust newly merged code to new API 2019-09-02 11:13:46 +02:00
Miha Čančula
1b4b5d7b24
Merge branch 'develop' into GRPH-50-network_broadcast_api-fix-v2 2019-09-02 10:27:33 +02:00
Alfredo Garcia
fcfe65acf8 add cli tests framework 2019-08-30 16:51:24 -03:00
Alfredo Garcia
3362d603cb remove cache from cli get_account 2019-08-30 16:49:54 -03:00
gladcow
c5623fdabb increase delay for node connection 2019-08-30 15:54:00 +03:00
Bobinson K B
3b36d4686b
Merge pull request #96 from peerplays-network/feature/GRPH-77
Fix building error for develop branch + test fix
2019-08-30 18:02:38 +05:30
Srdjan Obucina
11cf55c5d2 Increase block creation timeout to 2500ms 2019-08-30 13:57:57 +02:00
Srdjan Obucina
2ceb77f796 Fix building error for develop branch + test fix from PR 65 2019-08-30 12:06:41 +02:00
Srdjan Obucina
94ec9a67b4 Merge branch 'develop' of https://github.com/peerplays-network/peerplays into develop 2019-08-29 18:33:01 +02:00
pbattu123
8613bab257 issue - 154: Don't allow to vote when vesting balance is 0 2019-08-29 10:34:15 -03:00
John Jones
8f4483dfea remove needless find() 2019-08-29 07:39:20 +03:00
Peter Conrad
8b5182e53e Created unit test for #325 2019-08-28 22:36:36 +03:00
Miha Čančula
3c83b50fd3
Make all the tests compile 2019-08-28 17:09:53 +02:00
Srdjan Obucina
1a6ba1ac1e Merge branch 'qa_gpos_18.04_gcc7_fix' into develop 2019-08-28 17:05:24 +02:00
satyakoneru
1d5372d432
Merge pull request #86 from peerplays-network/GRPH-53
GRPH-53-Log_format_error
2019-08-29 00:06:02 +10:00
gladcow
15314faa9f fix copyright message 2019-08-28 17:00:35 +03:00
satyakoneru
f6423d0b10 GRPH-4-CliWallet_crash_ctrlD 2019-08-28 13:53:41 +00:00
Miha Čančula
b5d52d9957
Hide some compiler warnings 2019-08-28 15:42:50 +02:00
Miha Čančula
83c28c2c06
Use offsetof instead of custom macro 2019-08-28 15:42:50 +02:00
Miha Čančula
4c54011d98
Update fc submodule 2019-08-28 15:42:21 +02:00
Miha Čančula
cb99aaa0cf
Adapt to variant API with max_depth argument 2019-08-28 15:42:21 +02:00
abitmore
94f9c5f3eb
Increase max depth for trx confirmation callback 2019-08-28 15:42:21 +02:00
Abit
a49f8bf47c
Merge pull request #714 from pmconrad/json_fix
JSON fix
2019-08-28 15:42:21 +02:00
abitmore
b787d62d06
Add test case for broadcast_trx_with_callback API 2019-08-28 15:41:16 +02:00
abitmore
22e7c44984
Add nullptr check in api.cpp for easier testing 2019-08-28 15:41:15 +02:00
pbattu123
a67453662d
missing files from dev branch 2019-08-28 15:41:15 +02:00
pbattu123
029d25ce64
Unit test case fixes and prepared SONs base 2019-08-28 15:41:15 +02:00
Miha Čančula
fd35f34ed0
Make all the tests compile 2019-08-28 15:37:52 +02:00
John M. Jones
b4bf247c21
Merge pull request #1036 from jmjatlanta/issue_730
Add fail_reason to proposal_object
2019-08-28 14:56:24 +02:00
Miha Čančula
dc8b6e8ce1
Hide some compiler warnings 2019-08-28 14:55:15 +02:00
Miha Čančula
15290b8996
Use offsetof instead of custom macro 2019-08-28 14:55:15 +02:00
pbattu123
6aae360f00
missing files from dev branch 2019-08-28 14:51:15 +02:00
pbattu123
d61c065fa0
Unit test case fixes and prepared SONs base 2019-08-28 14:51:14 +02:00
gladcow
5d38466f7d Backport fix for get_account_history from https://github.com/bitshares/bitshares-core/pull/628 and add additional account history test case 2019-08-28 15:49:33 +03:00
gladcow
bc05c320d3 remove double empty lines 2019-08-28 15:49:33 +03:00
gladcow
86b7a9a007 fix copyrigth messages order 2019-08-28 15:49:33 +03:00
gladcow
fd8a007e5e test for zero id object in account history 2019-08-28 15:49:33 +03:00
Peter Conrad
14b0d08d5a Fixed error when account_history_object with id 0 doesnt exist 2019-08-28 15:49:33 +03:00
satyakoneru
aeae7b254a GRPH-53-Log_format_error 2019-08-28 12:01:04 +00:00
Ronak Patel
6dddfd5d88 Fix for irrelevant signature included issue 2019-08-28 17:27:38 +05:30
Sandip Patel
0d0a6b7c74 Fixed error while loading object database 2019-08-28 12:11:43 +05:30
Srdjan Obucina
0b134f2279 NTP client back 2019-08-27 20:35:42 +02:00
Bobinson K B
e80e9dd401
Merge pull request #82 from bobinson/develop
updating develop as part of  new branching strategy
2019-08-27 20:02:33 +05:30
Bobinson Bobby
5d61ba2925 Merge branch 'beatrice' into develop 2019-08-27 05:39:54 +05:30
Srdjan Obucina
194b0dbbc9 Reorder operations in Dockerfile, to make image creation faster
- Reorder prevents unnecessary building of Boost libraries
2019-08-22 16:56:00 +02:00
obucinac
6595acb3f3
Merge pull request #74 from peerplays-network/qa_gpos_18.04_docker_img
Docker for Ubuntu 18.04
2019-08-22 12:46:45 +02:00
pbattu123
c35a88bd51
Merge pull request #37 from peerplays-network/feature/SONs-base
Unit test case fixes
2019-08-20 14:54:04 -03:00
pbattu123
8678b677bb missing files from dev branch 2019-07-01 22:20:00 -03:00
pbattu123
dae7101364 Unit test case fixes and prepared SONs base 2019-06-14 17:26:42 +00:00
Alfredo
b3892d9fba comment transaction_invalidated_in_cache testcase 2019-06-03 14:48:56 +00:00
Alfredo
e0cb473a70 fix block interval test 2019-06-03 14:48:30 +00:00
Alfredo
6fdcf6af23 change TEST to TESTB 2019-06-03 14:48:02 +00:00
3 changed files with 12 additions and 12 deletions

View file

@ -1,4 +1,4 @@
// GPOS HARDFORK Monday, 6 January 2020 01:00:00 GMT
// GPOS HARDFORK Monday, 17 February 2020 22:00:00 GMT
#ifndef HARDFORK_GPOS_TIME
#define HARDFORK_GPOS_TIME (fc::time_point_sec( 1578272400 ))
#define HARDFORK_GPOS_TIME (fc::time_point_sec( 1581976800 ))
#endif

View file

@ -35,12 +35,11 @@ namespace graphene { namespace chain { struct fee_schedule; } }
namespace graphene { namespace chain {
struct parameter_extension
{
optional< bet_multiplier_type > min_bet_multiplier = GRAPHENE_DEFAULT_MIN_BET_MULTIPLIER;
optional< bet_multiplier_type > max_bet_multiplier = GRAPHENE_DEFAULT_MAX_BET_MULTIPLIER;
optional< uint16_t > betting_rake_fee_percentage = GRAPHENE_DEFAULT_RAKE_FEE_PERCENTAGE;
optional< flat_map<bet_multiplier_type, bet_multiplier_type> >
permitted_betting_odds_increments = flat_map<bet_multiplier_type, bet_multiplier_type>(GRAPHENE_DEFAULT_PERMITTED_BETTING_ODDS_INCREMENTS);
optional< uint16_t > live_betting_delay_time = GRAPHENE_DEFAULT_LIVE_BETTING_DELAY_TIME;
optional< bet_multiplier_type > min_bet_multiplier;
optional< bet_multiplier_type > max_bet_multiplier;
optional< uint16_t > betting_rake_fee_percentage;
optional< flat_map<bet_multiplier_type, bet_multiplier_type> > permitted_betting_odds_increments;
optional< uint16_t > live_betting_delay_time;
optional< uint16_t > sweeps_distribution_percentage = SWEEPS_DEFAULT_DISTRIBUTION_PERCENTAGE;
optional< asset_id_type > sweeps_distribution_asset = SWEEPS_DEFAULT_DISTRIBUTION_ASSET;
optional< account_id_type > sweeps_vesting_accumulator_account= SWEEPS_ACCUMULATOR_ACCOUNT;
@ -148,6 +147,7 @@ FC_REFLECT( graphene::chain::parameter_extension,
(min_bet_multiplier)
(max_bet_multiplier)
(betting_rake_fee_percentage)
(permitted_betting_odds_increments)
(live_betting_delay_time)
(sweeps_distribution_percentage)
(sweeps_distribution_asset)

View file

@ -370,8 +370,8 @@ void bookie_plugin_impl::on_block_applied( const signed_block& )
assert(bet_iter != persistent_bets_by_bet_id.end());
if (bet_iter != persistent_bets_by_bet_id.end())
{
ilog("Adding bet_canceled_operation ${canceled_id} to bet ${bet_id}'s associated operations",
("canceled_id", op.id)("bet_id", bet_canceled_op.bet_id));
//ilog("Adding bet_canceled_operation ${canceled_id} to bet ${bet_id}'s associated operations",
// ("canceled_id", op.id)("bet_id", bet_canceled_op.bet_id));
if (is_operation_history_object_stored(op.id))
db.modify(*bet_iter, [&]( persistent_bet_object& obj ) {
obj.associated_operations.emplace_back(op.id);
@ -386,8 +386,8 @@ void bookie_plugin_impl::on_block_applied( const signed_block& )
assert(bet_iter != persistent_bets_by_bet_id.end());
if (bet_iter != persistent_bets_by_bet_id.end())
{
ilog("Adding bet_adjusted_operation ${adjusted_id} to bet ${bet_id}'s associated operations",
("adjusted_id", op.id)("bet_id", bet_adjusted_op.bet_id));
//ilog("Adding bet_adjusted_operation ${adjusted_id} to bet ${bet_id}'s associated operations",
// ("adjusted_id", op.id)("bet_id", bet_adjusted_op.bet_id));
if (is_operation_history_object_stored(op.id))
db.modify(*bet_iter, [&]( persistent_bet_object& obj ) {
obj.associated_operations.emplace_back(op.id);