Commit graph

2233 commits

Author SHA1 Message Date
gladcow
499e318199 [SON-107] Merge develop branch to SONs-base (#166)
* fix rng and get_winner_numbers implemented

* coipied code for bitshares fixing 429 and 433 isuues

* ticket_purchase_operation implemented. added lottery_options to asset

* lottery end implemented

* minor logic changes. added db_api and cli_wallet methods

* fix reindex on peerplays network

* fix some tests. add gitlab-ci.yml

* add pull to gitlab-ci

* fix

* fix and comment some tests

* added owner to lottery_asset_options. commented async call in on_applied_block callback

* added get_account_lotteries method to db_api and cli, lottery end_date and ticket_price verification

* merge get_account_lotteries branch. fix create_witness test

* fix test genesis and end_date verification

* fixed indices sorting and lottery end checking by date

* update db_version for replay and removed duplicate include files

* Added ntp and upgraded boost version

* Revert "GPOS protocol"

* need to remove backup files

* virtual-op-fix for deterministic virtual_op number

* Merged beatrice into 5050

* Updated gitmodules, changes to allow voting on lottery fee

* Removed submodule libraries/fc

* Added libraries/fc

* added missing , in types.hpp

* Added sweeps parameters to parameter_extension

* added missing comma in operations.hpp, small changes to config.hpp

* fixed returntype in chain_parameters.hpp

* removed sweeps_parameter_extensions

* Changed fc library

* fixed asset_object

* Changed peerplays-fc submodule

* Changed fc submodule to ubuntu 18.04 upgrade

* Removed submodule libraries/fc

* Added fc library back

* fix casting in overloaded function

* Removed blind_sign and unblind_signature functions

* Added new lottery_asset_create_operation

* Changed sweeps hardfork time

* Removed redundant if from asset_evaluator and fixed db_notify

* fixed duplicate code in fee_tests

* removed redundant tgenesis file

* Enable building on Ubuntu 18.04 using GCC 7 compiler

* fix: is_benefactor_reward had the default value of true when not set

* Docker file for Ubuntu 18.04

Base image updated to Unbuntu 18.04
Prerequisite list updated
Basic configuration updated

* Quick fix: Added missing package pkg-config

* Docker file updates

* 5050 fee update and compilation error fix

* Dockerfile, set system locale

Prevents locale::facet::_S_create_c_locale name error

* Update README.md

Fix typo

* Update README.md

* Changed hardfork time for SWEEPS and Core-429

* revert master changes that were brought in previous commit

* Fixed error when account_history_object with id 0 doesnt exist

* Fixed error while loading object database

* test for zero id object in account history

* Reorder operations in Dockerfile, to make image creation faster

- Reorder prevents unnecessary building of Boost libraries

* Fix for irrelevant signature included issue

* fix copyrigth messages order

* remove double empty lines

* Backport fix for `get_account_history` from https://github.com/bitshares/bitshares-core/pull/628 and add additional account history test case

* NTP client back

* GRPH-53-Log_format_error

* Merge pull request #1036 from jmjatlanta/issue_730

Add fail_reason to proposal_object

* Unit test case fixes and prepared SONs base

* Use offsetof instead of custom macro

* Hide some compiler warnings

* Make all the tests compile

* Add nullptr check in api.cpp for easier testing

* Add test case for broadcast_trx_with_callback API

* Unit test case fixes and prepared SONs base

* Merge pull request #714 from pmconrad/json_fix

JSON fix

* Increase max depth for trx confirmation callback

* Adapt to variant API with `max_depth` argument

* Update fc submodule

* Created unit test for #325

* remove needless find()

* GRPH-4-CliWallet_crash_ctrlD

* fix copyright message

* Make all the tests compile

* increase delay for node connection

* Increase block creation timeout to 2500ms

* remove cache from cli get_account

* add cli tests framework

* Adjust newly merged code to new API

* Improved resilience of block database against corruption

* Merged changes from Bitshares PR 1036

* 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.)

* Moved reindex logic into database / chain_database, make use of additional blocks in block_database

Fixed tests wrt db.open

* 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

* Log starting block number of replay

* Prevent unsigned integer underflow

* Fixed lock detection

* Dont leave _data_dir empty if db is locked

* Writing the object_database is now almost atomic

* Improved consistency check for block_log

* Cut back block_log index file if inconsistent

* Fixed undo_database

* Added test case for broken merge on empty undo_db

* Merge pull request #938 from bitshares/fix-block-storing

Store correct block ID when switching forks

* exclude second undo_db.enable() call in some cases

* Add missing change

* change bitshares to core in message

* Fixed integer overflow issue

* Fix for for history ID mismatch ( Bitshares PR #875 )

* Update the FC submodule with the changes for GRPH-4

* Fix #436 object_database created outside of witness data directory

* supplement more comments on database::_opened variable

* prevent segfault when destructing application obj

* Fixed duplicate ops returned from get_account_history

* minor performance improvement

* Added comment

* Merged Bitshares PR #1462 and compilation fixes

* Support/gitlab (#123)

* Updated gitlab process

* Fix undefined references in cli test

* Fixed test failures and compilation issue

* Fixed account_history_pagination test

* Fix compilation in debug mode

* Removed unrelated comment

* Skip auth check when pushing self-generated blocks

* Extract public keys before pushing a transaction

* Dereference chain_database shared_ptr

* 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

* Added get_asset_count API

* Allow sufficient space for new undo_session

* Throw for deep nesting

* No longer extract public keys before pushing a trx

and removed unused new added constructor and _get_signature_keys() function from signed_transaction struct

* Added cli_test to CI

* use random port numbers in app_test (#154)

* proposal fail_reason bug fixed (#157)

* Added Sonarcloud code_quality to CI (#159)

* Added sonarcloud analysis (#158)

* fix for lottery end

* fix declarations

* fix declarations

* fix boost integer

* fix compilation

* fix chain tests

* fix app_test

* try to fix cli test

* fix incorrect max_depth param

* working cli test

* correct fc version
2019-10-08 06:55:03 +05:30
Bobinson K B
324923b7b6
Merge pull request #135 from peerplays-network/SON11
Add chain extension parameter to set SON count
2019-09-23 08:31:44 -04:00
satyakoneru
b853a82275 SON11 - Add chain extension parameter to set SON count 2019-09-18 02:50:59 +00:00
obucinac
f8da5415e3
Part two of SON-83 - plugins option in command line and config file (#126)
- Empty SON plugin is INACTIVE by default
- To enable it, add peerplays_sidechain to plugins section in
  config file, or use --plugins command line option
- Plugin can work with or without witness
2019-09-13 17:34:34 +02:00
obucinac
7553091d02
Peerplays SON plugin skeleton (#122)
* Peerplays SON plugin skeleton
* SON tests skeleton
2019-09-11 20:29:48 +02:00
Bobinson K B
d1a2ea1c67
Merge pull request #124 from peerplays-network/feature/SONs-base-build-1804
Fix building on Ubuntu 18.04 with GCC 7
2019-09-11 09:55:15 -04:00
S
8f317e93d6 Fix building on Ubuntu 18.04 with GCC 7 2019-09-11 15:37:44 +02: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
Alfredo
891137cf57 merge PR 2 2019-05-30 00:04:53 -03:00
pbattu123
2c86caacc5
Merge pull request #8 from oxarbitrage/gpos2
GPOS protocol
2019-05-29 18:09:48 -03:00
Bobinson K B
9b643777af Update to add build on Ubuntu1804 2019-05-23 23:29:15 +05:30
Bobinson K B
d819afdaf8 update for README 2019-05-23 23:27:29 +05:30
Bobinson K B
12c2d0ee33 building on Ubuntu 18.04
updated README to capture support building on Ubuntu 18.04
2019-05-23 23:21:01 +05:30
PBSA
4c174597ff compilation errors resolved 2019-05-22 16:34:55 +00:00
pbattu
ee02f268f5 want to update HEAD to latest commit of fc 2019-05-21 21:29:59 -03:00
pbattu
ea25a9cc44 updates to git submodules path 2019-05-21 19:43:19 -03:00
pbattu
84dff76a0a updated submodules to support 18.04 upgrade 2019-05-21 19:13:44 -03:00
pbattu
b568fbb842 path to fc modified again 2019-05-21 15:06:00 -03:00
pbattu
006eaeeee6 path to fc modified 2019-05-21 14:31:44 -03:00
pbattu
0f06a9af2a Required changes to upgrade blockchain to ubuntu18.04 2019-05-20 22:32:17 -03:00
pbattu123
c7c87c6380
Merge pull request #30 from peerplays-network/revert-28-beatrice
Revert "Merge branch 'master' into beatrice"
2019-04-12 13:08:56 -03:00
Roshan Syed
b787f3f21b Revert "Merge branch 'master' into beatrice"
This reverts commit cc8766d319, reversing
changes made to fd71c4b682.
2019-04-12 12:53:09 -03:00
pbattu123
f0f140e1e6
Merge pull request #28 from peerplays-network/beatrice
Merge beatrice indexing changes into master
2019-04-12 10:19:17 -03:00
pbattu123
cc8766d319
Merge branch 'master' into beatrice 2019-04-12 10:12:58 -03:00
pbattu123
fd71c4b682
Merge pull request #36 from emfrias/make-bmg-resolution-ordering-consistent
Make indexes on blockchain objects related to betting markets into
2019-04-02 16:18:17 -03:00
Eric Frias
1052f49f5d Make indexes on blockchain objects related to betting markets into
unique indexes to ensure the order betting market groups are resolved
is consistent between different nodes.  This bumps the database version
which will trigger a replay on the first run after this upgrade.
2019-03-29 16:20:45 -04:00
Alfredo
a58eb6fae8 add get_gpos_info database api call 2019-03-05 17:48:47 -03:00
Fabian Schuh
0dc7e8b784
Merge pull request #13 from peerplays-network/hardfork
Hardfork for Bookie
2019-02-11 10:53:40 +01:00
Fabian Schuh
5e352238c4
Dupcheck fix 2019-02-07 16:20:43 +01:00
Fabian Schuh
9946eab684
Make ordered_unique out of ordered_non_unique indices 2019-02-07 15:42:01 +01:00
Fabian Schuh
c9dd3aea66
Fix unittest 2019-02-07 15:42:01 +01:00
Fabian Schuh
89361e58af
Merge pull request #14 from peerplays-network/feature/duplicate-operation-check-hardfork
Feature/duplicate operation check hardfork
2019-02-07 15:34:35 +01:00
Fabian Schuh
6f3ddc0719
Merge branch 'hardfork' into feature/duplicate-operation-check-hardfork 2019-02-07 15:34:16 +01:00
Fabian Schuh
80600494d7
Ensure proposals for fee updates with new operations cannot happen before HF 2019-02-07 13:29:06 +01:00
Fabian Schuh
7598d54fa7
Fixes after review 2019-02-07 12:18:15 +01:00
Fabian Schuh
867ac8045c
Remove unecessary loop since _pending_tx are in API's scope's database already 2019-02-07 11:18:44 +01:00
dimfred
87bf4be89b digest_accumulator picks out bm_create and bmg_create and reworked duplicate check 2019-02-06 14:25:37 +01:00
dimfred
75e339e42f Fixed network_broadcast_tests, added cases 2019-02-06 14:25:37 +01:00
Fabian Schuh
d5beeae570
Set hardfork dates to February 18th 12:00PM GMT 2019-02-04 16:14:31 +01:00
dimfred
c86237cd86 changed api.cpp accordingly 2019-02-01 18:36:30 +01:00
dimfred
2922366e27 changed check_transaction to check only for proposals associated with GRAPHENE_WITNESS_ACC 2019-02-01 18:36:30 +01:00
dimfred
ee8429938c moved check_trx_for_duplicate_operation and digest_accumulator to database api 2019-02-01 18:36:30 +01:00
Alfredo
0e3d87eaad refactor calculate_vesting_factor to consider if voted in last periods for coefficient calculation, fix the tests accordingly, change hardfork date 2019-01-31 20:32:19 -03:00
Fabian Schuh
6400957860
Merge remote-tracking branch 'network/develop' into hardfork 2019-01-28 09:47:30 +01:00
Fabian Schuh
74f295ba40
Merge branch 'beatrice' into develop 2019-01-28 09:45:57 +01:00
Fabian Schuh
7102d06ddb
Merge pull request #33 from blockchainprojects/feature/rework-duplicate-operation-check
feature/rework duplicate operation check
2019-01-28 09:45:03 +01:00