Commit graph

272 commits

Author SHA1 Message Date
Srdjan Obucina
9768d302be Revert "[SON-107] Merge develop branch to SONs-base (#166)"
This reverts commit 499e318199.
2019-10-08 15:44:13 +02:00
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
e377478c34
Merge pull request #139 from peerplays-network/feature/GRPH-94
Improve block generation performance
2019-09-24 13:51:46 -04: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
Miha Čančula
499a5fc33e
Merge branch 'develop' into GRPH-50-network_broadcast_api-fix-v2 2019-09-18 16:36:42 +02: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
satyakoneru
f6423d0b10 GRPH-4-CliWallet_crash_ctrlD 2019-08-28 13:53:41 +00:00
Miha Čančula
cb99aaa0cf
Adapt to variant API with max_depth argument 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
pbattu123
f9e46a31df
Merge branch 'beatrice' into qa_gpos_18.04_gcc7_fix 2019-08-20 15:42:03 -03:00
pbattu123
947b02bd57
Merge branch 'beatrice' into beatrice-5050-merge 2019-08-20 15:15:01 -03:00
pbsa
485bb0e7b3 included sstring in 2 files, added missing ops to db_notify.cpp 2019-08-06 15:19:51 -03:00
Prabhjot Singh
aa3128fe89 Merged beatrice into 5050 2019-07-30 11:43:31 -04:00
pbattu123
1c1652cca2 need to remove backup files 2019-05-30 10:29:13 -03:00
pbattu
0f06a9af2a Required changes to upgrade blockchain to ubuntu18.04 2019-05-20 22:32:17 -03:00
Fabian Schuh
fc21e79206
Fix rebase 2018-10-11 13:36:49 +02:00
Peter Conrad
ade7cf2d87
Created plugin stub for affiliate statistics 2018-10-10 14:26:38 +02:00
Peter Conrad
f6b0e08d18 Merge branch 'snapshot_plugin' 2018-09-10 18:13:27 +02:00
Peter Conrad
9294aa04dd Ported snapshot plugin from BTS 2018-09-10 15:55:48 +02:00
Roman Olearski
1dce94f2dc witness_node main.cpp - removing ; by --version 2017-08-10 21:27:42 +02:00
Eric Frias
72df62826e Add a --version command to the witness node to print what git revision was used to build it 2017-08-09 18:16:52 -04:00
Eric Frias
c4470131ac Enable building bookie plugin, add API for bookie plugin, and implement a
function for getting binned order books (as yet untested)
2017-07-27 19:36:31 -04:00
Roman Olearski
d3482f3a08 Merge branch 'rock-paper-scissors' of https://bitbucket.org/peerplaysblockchain/peerplays-graphene into betting-merge 2017-07-13 16:07:30 +02:00
Eric Frias
cd2940c8a8 Remove competitor and market options objects from the blockchain 2017-07-06 11:57:45 -04:00
Eric Frias
5a99abc3de Merge commit '0053613b38e81719c198f36c748e181cc44635b2' into betting 2017-06-20 18:57:23 -04:00
Eric Frias
bd525ef55d Merge commit 'c777a88649d50edf6c5e4a8c3b13dda88a66e9d0' into betting 2017-06-20 18:15:43 -04:00
Roman Olearski
eb4c8f75d1 Merge branch 'rock-paper-scissors-ro' into rock-paper-scissors
Conflicts:
	programs/witness_node/main.cpp
2017-06-09 12:17:26 +02:00
Viktor
b7e11ae9d6 Update max core supply in genesis, properly track total supply for vesting balances in bts accounts and other changes 2017-06-06 11:17:04 +03:00
Eric Frias
f6bf447820 Add functionality to genesis_update.cpp that replaces all keys in a genesis file with
newly-generated dev keys for testing.
2017-06-02 19:12:12 -04:00
Viktor
9e8bc0b27c Add 'generate_uia_sharedrop_genesis_plugin' used for generating the initial PPY
balances based on the BitShares PEERPLAYS UIA.
Modify the other generate_genesis plugin to be able to run disabled.
2017-06-02 11:56:01 +03:00
Eric Frias
36bcada8fa Add 'generate_uia_sharedrop_genesis_plugin' used for generating the initial PPY
balances based on the BitShares PEERPLAYS UIA.
Modify the other generate_genesis plugin to be able to run disabled.
2017-06-01 11:05:43 -04:00
kstdl
342e6db610 inital 2017-05-25 12:13:59 +03:00
Roman Olearski
3e4d9c2aa3 added acounts_list_plugin 2017-05-22 17:57:35 +02:00
Eric Frias
65aa509ec9 Support enums in blockchain objects (fix serialization) 2017-03-21 09:24:08 -04:00
Eric Frias
2470af6eb9 Initial work on creating blockchain objects for sports betting 2017-03-15 17:04:27 -04:00
Roman Olearski
787019617f Summary commiting changes made since the last commit
modified:   libraries/app/impacted.cpp
	modified:   libraries/chain/db_init.cpp
	modified:   libraries/chain/db_maint.cpp
	modified:   libraries/chain/game_object.cpp
	modified:   libraries/chain/include/graphene/chain/protocol/operations.hpp
	modified:   libraries/chain/include/graphene/chain/protocol/tournament.hpp
	modified:   libraries/chain/protocol/tournament.cpp
	modified:   libraries/chain/tournament_object.cpp
	modified:   libraries/wallet/wallet.cpp
	modified:   programs/witness_node/main.cpp
	modified:   tests/CMakeLists.txt
	modified:   tests/common/database_fixture.cpp
	new file:   tests/tournament/tournament_tests.cpp
2016-11-28 12:36:18 +01:00
Vikram Rajkumar
7d721a1654 Decrease default p2p log level to avoid filling disk on initial sync 2016-11-18 17:07:19 -06:00
Roman Olearski
7f36b261bf Merge remote-tracking branch 'origin/dividends' into rock-paper-scissors
Adding new chain parameters
Distribute prize money when a tournament ends
2016-11-02 15:30:18 +01:00
Eric Frias
c4ad900026 Fix build error in member_enumerator when an operation includes an enum.
Implement the commit/reveal timeouts in RPS games, and generate automatic
("insurance") moves.  Make the CLI wallet watch for new games in
tournaments you're registered for.
2016-10-18 17:36:59 -04:00
Eric Frias
baab40070d Many changes, including a start to supporting peerplays games in the cli wallet 2016-10-03 12:14:48 -04:00
Eric Frias
eb8929f6fa Separate match object out from tournament and give it a fsm,
start changing genesis json
2016-09-20 14:36:06 -04:00
theoreticalbts
0f7f8acc03 debug_node: Create README.md 2016-03-28 15:54:32 -04:00
theoreticalbts
77ac461a8a Implement debug_node target #606 2016-03-15 13:36:29 -04:00
Eric Frias
a7f84df957 Allow disabling building test executables 2016-02-26 13:38:11 -05:00
Eric Frias
d3c6cbf4de Compile fixes for win32 and out-of-source builds 2016-02-17 09:17:00 -05:00
theoreticalbts
d280a57af0 js_operation_serializer: Add missing include #561, broken by #563 2016-02-15 21:30:00 -05:00
theoreticalbts
fe0920ddc8 Merge branches '538-fork-buyback', '562-util-check-reflection' and '575-bugfix-settle-reflect' into develop
Fix reflection bugs and enhance check_reflect.py
2016-02-15 15:37:50 -05:00
theoreticalbts
2cc0d73609 check_reflect.py: Detect #575 (*_object using FC_REFLECT rather than FC_REFLECT_DERIVED) 2016-02-14 17:22:23 -05:00
theoreticalbts
2eaa1b553b Merge branch 'check_reflection' into develop #562 2016-02-09 11:02:07 -05:00
theoreticalbts
078e63a79f Merge many bugfix branches into develop
Merged:

492-bugfix-open-fail #492
523-bugfix-multiple-blind-xfer #523
537-cleanup-remove-operation_get_required_authorities #537
540-cleanup-settle-volume-spam #540
542-bugfix-cancel-fee #542
557-bugfix-pts-address #557
559-test-fix-zero-block-wait #559
561-bugfix-serializer-build-broken #561
562-bugfix-unreflected-fields #562
2016-02-09 10:57:21 -05:00
theoreticalbts
2822aca94d Implement rough Python regular expression based reflection checker #562
Ironically this doesn't use the member_enumerator implemented in previous commit
2016-02-09 03:44:41 -05:00
theoreticalbts
915ebb5815 Implement member_enumerator to have FC dump class members #562 2016-02-09 03:44:39 -05:00
theoreticalbts
fe67b18065 js_operation_serializer: Add missing includes #466 #561 2016-02-08 15:39:01 -05:00
theoreticalbts
3edaf15652 Generate hardfork.hpp from hardfork.d directory #511 2016-01-11 10:09:03 -05:00
theoreticalbts
f1b19b1562 Merge branch '496-cleanup-license-header' into develop 2016-01-07 13:38:52 -05:00
Fabian Schuh
5111084730 [License] Modify cpp and hpp headers to MIT #496 2016-01-07 11:44:52 -05:00
theoreticalbts
3c4764ce5a Merge branch '457-cleanup-remove-full-web-node' into develop 2016-01-07 11:32:57 -05:00
theoreticalbts
39220456ce Remove light_client 2015-11-23 10:04:54 -05:00
theoreticalbts
751d68789a Remove full_web_node #457 2015-11-23 10:04:26 -05:00
James Calfee
ed3ccca357 JavaScript serilizer generator updates #439 2015-11-09 17:26:51 -06:00
theoreticalbts
76ba85f93e genesis_util: Implement generate_init_config.py 2015-10-30 10:23:21 -04:00
theoreticalbts
7d9d96fe63 genesis_util: apply_patch appends to empty list with warning 2015-10-30 10:23:21 -04:00
theoreticalbts
e564539f88 change_asset_symbol.py: Fix permissions 2015-10-23 17:38:11 -04:00
theoreticalbts
f8b8f01a78 genesis_util: Implement some more genesis utilities 2015-10-23 15:00:31 -04:00
theoreticalbts
fc13ce4478 genesis_util: Implement create_bloom_filter 2015-10-21 13:29:31 -04:00
Daniel Larimer
1423f80f40 adding support for SIGTERM to exit witness cleanly from docker 2015-10-14 16:25:37 -04:00
theoreticalbts
fc95e83732 Merge remote-tracking branch 'graphene/master' into master 2015-10-14 14:41:59 -04:00
theoreticalbts
6dced3c54a genesis_util: Implement many new genesis utilities 2015-10-14 14:28:45 -04:00
theoreticalbts
73150e3c71 initialize initial_active_witnesses 2015-10-12 19:43:03 -04:00
theoreticalbts
5c0e5746e8 fix committee member format 2015-10-12 19:30:47 -04:00
theoreticalbts
f57cd74f1b generate_init_patch.py: Fix small problems 2015-10-12 18:04:43 -04:00
theoreticalbts
59758802d3 Implement new genesis_util's 2015-10-12 17:01:16 -04:00
theoreticalbts
d0609e8e74 Update copyright notice for BitShares 2015-10-12 13:48:40 -04:00
theoreticalbts
60f0812de2 Update copyright notice 2015-10-12 13:32:47 -04:00
theoreticalbts
3023a37b80 genesis_util: Implement two new utilities 2015-10-09 15:38:34 -04:00
Daniel Larimer
f45fabd5c8 update full web node name 2015-10-08 13:40:58 -04:00
theoreticalbts
60b5228818 Implement remove.py 2015-10-05 10:57:36 -04:00
Eric Frias
83b4edf870 Avoid closing p2p node in exception handler 2015-09-27 18:32:53 -04:00
Daniel Larimer
c98eef2fb4 fix full node build 2015-09-22 16:51:38 -04:00
Daniel Larimer
d3d7c379b0 progress toward building mac installer 2015-09-21 09:30:51 -04:00
Daniel Larimer
009344cefe removing generated files 2015-09-21 09:30:32 -04:00
Daniel Larimer
b5aa715537 fix dev tool for release mode 2015-09-18 16:47:58 -04:00
Daniel Larimer
7237ef618f making full node more configurable and passing relevant info to web api 2015-09-18 14:22:20 -04:00
Daniel Larimer
465280fbcb Improved Logging, track blocks missed by witnesses 2015-09-18 09:13:17 -04:00
Daniel Larimer
e044c5303a fix full node initial url 2015-09-17 17:55:47 -04:00
Daniel Larimer
9080800c5b Updated APIs, fixed crash
- update fc to fix crash in websocket message handling
- added api to verify transactions without broadcasting them
- added api to broadcast a block produced outside the P2P network or
witness
2015-09-07 17:46:47 -04:00
Eric Frias
a943de8b76 When rolling back on save, remove the rolled back blocks from our
databases so when we restart and begin syncing, we re-download and
push those rolled back blocks  (fixes bug introduced in
a5071f2568).
Fix logging of incorrect block numbers in p2p log.
2015-09-04 15:22:12 -04:00
theoreticalbts
c65f37ed6b cli_wallet: Exit instead of hanging when disconnected #291 2015-09-02 14:57:02 -04:00
theoreticalbts
5a923697ad genesis_util: Implement utility for updating keys of genesis.json witnesses / testnet dev accounts 2015-08-31 17:26:03 -04:00
Daniel Larimer
2a494d9de0 Merge branch 'witness_schedule_refactor'
Also fix object_id addition
2015-08-27 11:33:42 -04:00
Daniel Larimer
e5106c15a3 update subscribe callback 2015-08-26 18:01:48 -04:00
theoreticalbts
6c052294e1 Remove block randomness and rewrite witness scheduling 2015-08-26 15:36:27 -04:00
Daniel Larimer
a79eff2761 progress toward witness schedule refactor 2015-08-25 13:45:20 -04:00
theoreticalbts
aeebb1be09 cli_wallet: Copy ws_server, ws_user, ws_password to new wallet 2015-08-24 15:15:31 -04:00
Nathan Hourt
9c0c588ed6 [FWN] Remove deprecated scheduling code 2015-08-19 11:40:45 -04:00
Nathan Hourt
3a9d0df75c [FWN] Create privileged API login for web UI
This resolves #249
2015-08-19 11:40:31 -04:00
Nathan Hourt
5fbff6cf52 Resolve #238: Light client now fetches chain_id from chain_properties 2015-08-19 10:23:06 -04:00
Nathan Hourt
5aa884c574 #237: Create new delayed_node app
Delayed node is much like witness_node, except it doesn't have support
for block productuion (thus cannot be a witness) and it is not intended
to use the P2P network. The delayed node requires a trusted node it can
connect to via RPC and download blocks from. The delayed node will only
download blocks from the trusted node if those blocks have received a
configurable number of confirmations.

This commit effectively resolves #237
2015-08-17 16:38:55 -04:00
Nathan Hourt
03175707ff [FWN] Serve web from QRC instead of HTTP 2015-08-14 16:22:21 -04:00