Eric Frias
922bdec8d6
Fix a bug in serializing betting market objects to json which
...
would show graded betting markets as canceled, and vice versa,
even though the internal represntation was in the right state.
2018-05-03 14:49:24 -04:00
Eric Frias
70e47a74dd
Change bet matching algorithm to limit the amount matched by the
...
taker's odds, instead of buying as much as the taker's bet_amount
allowed at the maker's odds
2018-05-02 19:19:01 -04:00
Eric Frias
2c50036ee1
Prevent placing bets when the betting market group is closed, graded,
...
re-grading, or settledt
2018-05-02 09:42:56 -04:00
Eric Frias
440fdb566b
Fix bug causing a cancel of one event in an event group to cancel
...
other events
2018-04-29 18:59:15 -04:00
Eric Frias
6b86ccc2f3
When tallying witness/committee member votes, always assign at least
...
one vote to each witness/committee member for purposes of calculating
their weight in the witness-account or committee-account authority.
This will likely have no effect in a well established blockchain, but
it does occur when a new blockchain is launched for testing without
enough votes to fill all the witness/committee slots.
2018-04-24 19:13:30 -04:00
Eric Frias
0404e6c0b6
When placing a bet, delay the check to see if you are able to fund
...
the bet until after any guaranteed winnings have been returned
2018-04-17 18:54:42 -04:00
Eric Frias
5343c073bd
Delay deletion of completed/canceled events to avoid an error producing
...
blocks when a betting market group with no betting markets is canceled.
2018-04-17 13:17:38 -04:00
Fabian Schuh
101325990b
Hardfork baxter
2018-04-05 11:53:45 +02:00
Peter Conrad
e75f18ba57
Removed hardfork code for CORE_429
2018-03-23 15:20:18 +01:00
Peter Conrad
4b0579b475
Fixed #429
2018-03-23 15:20:18 +01:00
abitmore
8d8b84cc37
Proof of concept fix for asset creation fee issue
2018-03-23 15:20:18 +01:00
SynaptiCAD User
cfd77773c7
[DLN] reorder operations to match testnet, add asserts to reject operations before new testnet hardfork '1000' (actual hardfork time still needs to be set in 1000.hf)
2018-03-19 18:51:19 -04:00
Eric Frias
931c925610
Register event status update operation
2018-02-13 11:34:04 -05:00
Eric Frias
3b3a0905ff
Change the behavior of the betting markets from being controlled by
...
a collection of flags (is_live, is_closed) to a single status field.
The status changes in an event can trickle down to the market groups,
and the status changes in market groups can bubble up to events.
2018-02-07 10:16:30 -05:00
Fabian Schuh
4c5e0a07f7
Show proposer on proposals
2018-01-29 14:19:38 +01:00
Eric Frias
69b00293d9
Only do slow replays when the bookie plugin is loaded
2017-09-07 15:55:44 -04:00
Eric Frias
ed0917ee03
Leave undo_db enabled during replay so bookie plugin gets the correct history
2017-09-07 12:00:44 -04:00
Eric Frias
d333dd3812
Track match/cancel/adjust operations related to a bet in the bookie plugin.
...
Create a paginated version of get_matched_bets_for_bettor()
2017-09-06 16:52:58 -04:00
Roman Olearski
2cd816ec6d
fixing bet_cancel_operation, added mising fee to reflection
2017-09-01 16:25:13 +02:00
Roman Olearski
ec08259b7d
added cancel_bet to the wallet
2017-09-01 13:29:45 +02:00
Eric Frias
f3290a8827
Add get_unmatched_bets_for_bettor() to get unmatched bets across all betting markets
2017-08-31 11:02:16 -04:00
Eric Frias
38f1cbdcd6
Add list_events_in_group() and get_unmatched_bets_for_bettor() API calls
2017-08-30 19:21:27 -04:00
Eric Frias
b83dea821e
Fix a case where neither the taker nor maker bet was able to fully match. When this
...
happens, cancel the remainder of the taker bet.
2017-08-30 17:18:58 -04:00
Eric Frias
6a9b2a0d04
Fix a crash in which we tried to log a proposal object that may have been deleted.
...
Also, fix a place where logged the letter e instead of the exception it represented
2017-08-30 17:15:50 -04:00
Eric Frias
629e6c7be7
Change default live betting delay to 5 seconds (down from 10)
2017-08-29 11:33:40 -04:00
Eric Frias
b505c375af
Finish delayed (live) betting.
...
Remove the ability to change the event of a betting market group after creation.
2017-08-15 18:44:09 -04:00
Roman Olearski
a2b83c668f
added delay_bets to betting_market_group_object, live_betting_delay_time to chain parametrs .
2017-08-10 21:36:04 +02:00
Eric Frias
d13783a3c4
Fix bug that prevented placing bets that were too small to stay on the books,
...
Add a get_objects() call to the bookie API to provide access to objects that
have been removed from the blockchain, and a few tests to verify that they
work.
2017-08-09 17:17:51 -04:00
Eric Frias
8fd01c8af7
Swap the 'bet_adjusted_operation' into the position previously occupied by
...
betting_market_group_freeze_operation to avoid renumbering subsequent operations.
2017-08-09 12:42:51 -04:00
Roman Olearski
2c8b9ce17a
Merge branch 'betting-merge' of https://bitbucket.org/peerplaysblockchain/peerplays-graphene into betting-merge
2017-08-09 17:59:25 +02:00
Roman Olearski
ec77685264
added is_live_market to event_update operation
2017-08-09 17:58:01 +02:00
Eric Frias
a8d5fded26
Remove the code for charging beting fees up-front now that rake fees are taken from your net winnings.
...
Change the bet matching algorithm to only match at exactly the maker's odds, no rounding.
Implement binned order books in the betting market plugin. Keep betting market groups,
betting markets, and bet objects around forever in the plugin (not yet exposed to the api).
2017-08-09 11:15:12 -04:00
Roman Olearski
f417dc0391
removed betting_market_group_freeze operation
...
added freeze to betting_market_group_update operation
2017-08-09 11:08:50 +02:00
Roman Olearski
69e8348522
setting initial event_state
2017-08-07 17:27:23 +02:00
Eric Frias
93088a204d
Change the rounding used when matching bets to never round, bets are always matched at
...
exactly the maker's odds.
2017-08-01 15:42:52 -04:00
Roman Olearski
6ca6413d88
bookie_plugin: added localized_event_strings ....
2017-08-01 12:26:45 +02:00
Roman Olearski
b96459045b
added get_total_matched_bet_amount_for_betting_market_group to bookie_plugin
2017-07-28 18:23:57 +02:00
Roman Olearski
3ac447b8a7
Add missing 'description' field to betting_market_update operation
2017-07-27 09:50:37 +02:00
Roman Olearski
6e33db129d
Merge branch 'betting-merge' of https://bitbucket.org/peerplaysblockchain/peerplays-graphene into betting-merge
2017-07-26 22:25:05 +02:00
Roman Olearski
9ab4d7049a
added betting wimbledon test, improving database::resolve_betting_market_group .
2017-07-26 22:23:49 +02:00
Eric Frias
0b1d55586e
Add missing 'description' field to betting_market_create operation
2017-07-26 13:52:55 -04:00
Roman Olearski
b6682fa69a
added betting_market_group_update_operation betting_market_update_operation
2017-07-24 20:59:47 +02:00
Roman Olearski
ea3818cf4f
extended event_update_operation
2017-07-21 13:42:15 +02:00
Roman Olearski
cd40ef0715
extended event_group_update_operation
2017-07-20 21:01:10 +02:00
Roman Olearski
78100f9fb5
added betting_market_rules_update_operation
2017-07-20 14:28:12 +02:00
Roman Olearski
2acd4dd187
added event_update_operation
2017-07-20 12:19:18 +02:00
Roman Olearski
7b8fad0bfa
added event_group_update_operation
2017-07-19 18:10:55 +02:00
Roman Olearski
a24f671c02
added sport_update_operation
2017-07-19 13:05:28 +02:00
Roman Olearski
67c134a138
changed cancel_all_bets to cancel_unmatched_bets
2017-07-19 10:29:51 +02:00
Roman Olearski
04985c2624
improving cancel_all_bets operation
2017-07-18 19:17:13 +02:00
Roman Olearski
86b909da44
Merge branch 'betting-merge' of https://bitbucket.org/peerplaysblockchain/peerplays-graphene into betting-merge
2017-07-18 12:04:28 +02:00
Roman Olearski
c7c03c4aab
added cancel_all_bets operation
2017-07-18 12:02:16 +02:00
Eric Frias
24c0089869
Fix link error in release builds
2017-07-17 18:59:35 -04:00
Daniel Larimer
1c97c13eed
Replace flat_index with generic_index for bitasset_object
...
- this enabled me to produce blocks and fixed corruption
2017-07-17 23:24:09 +02:00
Roman Olearski
fb22da620d
minor cosmetic changes ...
2017-07-14 13:31:04 +02: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
Roman Olearski
bb46f84666
Fixing double declared enumerated types with FC_REFLECT_TYPENAME FC_REFLECT_ENUM
...
Adapting fc
2017-07-12 12:28:59 +02:00
Eric Frias
790bfe3704
WIP Force all betting markets in a group to use the same asset_id for betting
2017-07-09 18:41:26 -04:00
Eric Frias
4e2c6c303a
Add an operation to freeze/unfreeze a betting market group
2017-07-09 13:52:01 -04:00
Roman Olearski
5de1437d24
Merge branch 'betting-ro4' into betting-merge
2017-07-08 20:41:45 +02:00
Roman Olearski
c18094abd8
implementing rake fee in resolve_betting_market_group #1
...
improving net profit calculation
2017-07-08 18:30:23 +02:00
Eric Frias
a8a64e530b
Add an informational betting_market_rules object, linked to betting market groups
2017-07-06 18:07:39 -04:00
Roman Olearski
32433ef29f
Cherry-picked all divident commits from rps to betting resolving conflicts
2017-07-06 23:04:50 +02:00
Roman Olearski
3a8b8a3b5b
Cherry-picked commit b9508c6.
...
little correction for solution ...issues/#10 avoid generating dividend_payout virtual operations for zero-size payouts
2017-07-06 20:19:51 +02:00
Roman Olearski
59c64efb5a
solution ...issues/#10 avoid generating dividend_payout virtual operations for zero-size payouts
2017-07-06 20:15:50 +02:00
Roman Olearski
9bbf73a96a
Cherry-picked commit 81c9e98.
...
solution ...issues/#7 Allow vesting core tokens to vote and receive dividends
2017-07-06 20:14:54 +02:00
Roman Olearski
64d59602a8
solution proposal for ...issues/#7 Allow vesting core tokens to vote and receive dividends
2017-07-06 20:05:24 +02:00
Eric Frias
bfcc23ac9d
Cherry-picked commit 749ffb8.
...
Don't make the core asset a bitasset
2017-07-06 20:04:05 +02:00
Roman Olearski
85102da504
Cherry-picked commit 32b5343.
...
Implementing propose_dividend_asset_update
2017-07-06 19:58:10 +02:00
Roman Olearski
1386617465
Removing redundant line
2017-07-06 19:55:24 +02:00
Roman Olearski
dac9d8b61b
Cherry-picked commit 26f4718.
...
Creating default dividend asset
2017-07-06 19:53:14 +02:00
Eric Frias
da5ef56a35
Cherry-picked commit 9089292.
...
Prevent creation of accounts with the same name as dividend distribution accounts
2017-07-06 19:44:35 +02:00
Eric Frias
90722fc0a4
Cherry-picke commit be6ad13.
...
Code cleanups -- renaming variables, adding comments, fix one bug with override transfers and dividend assets
2017-07-06 19:41:13 +02:00
Eric Frias
67d0898394
Fixes to paying out non-core assets using their fee pools
2017-07-06 19:39:04 +02:00
Eric Frias
5b437d7363
Cherry-picked commit b584ee1.
...
Separate out unit tests for dividend-assets into their own test suite
2017-07-06 19:22:33 +02:00
Eric Frias
60f7dd798f
Keep pending dividend balance and distributed dividend balance objects around (with zero
...
balance) after payouts, they will probably be needed again.
2017-07-06 19:19:54 +02:00
Eric Frias
b8e1165290
Cherry-picked commit 7857ac4.
...
Correctly generating virtual transactions for payouts
2017-07-06 19:18:48 +02:00
Eric Frias
b9304caffa
Cherry-picked commit abc7853.
...
Initial work on dividend-paying assets. Basic functionality works in simple cases.
2017-07-06 19:14:02 +02:00
Eric Frias
cd2940c8a8
Remove competitor and market options objects from the blockchain
2017-07-06 11:57:45 -04:00
Roman Olearski
9b08b502be
implementing betting_market_resolve_group_operation (3) #1
2017-07-06 12:56:32 +02:00
Eric Frias
9c9af76e12
Merge commit 'd8e7c0afee573d82647018a9efd530a03274a2aa' into betting
2017-06-21 16:58:50 -04:00
Eric Frias
3238ea735f
Merge commit '568ceb189eca96e77e38c4059b83a504008d7e91' into betting
2017-06-21 16:43:00 -04:00
Eric Frias
636f28eac6
Merge commit 'aa6f3e9051787bfc1b4284f1684544cca9bfc9c9' into betting
2017-06-21 16:08:58 -04:00
Eric Frias
51fb13f8ba
Merge commit '9466d2096a370e15aff70842b48feeca4a941e5c' into betting
2017-06-21 14:54:05 -04:00
Eric Frias
b200fb893b
Merge commit '0ecdc90d4df2ebd80a6d4cfa4388f4b8a608c9c1' into betting
2017-06-21 09:35:32 -04:00
Eric Frias
fe82e85d8d
Merge commit '9bbbefd3913ccfe01b8e8ef2007ca3eb74ab9d81' into betting
2017-06-21 09:33:53 -04:00
Eric Frias
c20978bae6
Merge commit '1e80d8a01e6181711bba3d6462e64286d79935b1' into betting
2017-06-20 19:34:52 -04:00
Eric Frias
5a99abc3de
Merge commit '0053613b38e81719c198f36c748e181cc44635b2' into betting
2017-06-20 18:57:23 -04:00
Eric Frias
627dba3a46
Merge commit '0ad83697f08a11431eece565f0386a849bed25c9' into betting
2017-06-20 18:36:19 -04:00
Eric Frias
bd525ef55d
Merge commit 'c777a88649d50edf6c5e4a8c3b13dda88a66e9d0' into betting
2017-06-20 18:15:43 -04:00
Eric Frias
7195e22216
Merge commit '36164263f4cceda85ec92568d48016a48f7ad9c9' into betting
2017-06-20 17:28:41 -04:00
Eric Frias
bd70c0dc67
Restore sanity-check assert
2017-06-06 10:22:46 -04:00
Viktor
d245b70d70
Change core symbol and address prefix
2017-06-06 16:27:12 +03:00
Eric Frias
50f224137b
Add peerplays-testnet account in genesis file.
...
change default core asset and prefix to PPY.
update test genesis to match new prefix.
2017-06-06 09:01:27 -04: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
e53e9f8623
Update max core supply in genesis, properly track total supply for vesting balances in bts accounts
2017-06-05 19:52:51 -04:00
Abit
feabafd45f
Merge pull request #297 from abitmore/292-acc-his-prune
...
Account history: option to prune old data (#292 )
2017-06-06 00:42:54 +02:00
Roman Olearski
9c1e522070
Merge branch 'rock-paper-scissors' of https://bitbucket.org/peerplaysblockchain/peerplays-graphene into rock-paper-scissors
2017-06-05 19:21:58 +02:00
Roman Olearski
a8f51e2a98
updated genesis/genesis.json for peerplays
2017-06-05 19:20:54 +02:00
Eric Frias
38b2767567
Support specifying cliff_seconds in initial_vesting_balances
2017-06-05 12:31:14 -04:00
Eric Frias
ea7e8e6f31
Support genesis vesting balances tied to account objects
2017-06-04 18:26:50 -04:00
BhuzOr
8ceaeb0aa2
Fix clear_expired_transactions memory leak
...
Backport from Steem/BitShares: https://github.com/bitshares/bitshares-core/issues/256
2017-06-04 23:29:55 +02:00
abitmore
06b18c4011
Fix Windows build.
2017-06-03 01:21:17 +00:00
abitmore
504aa5dccd
Account history: option to prune old data ( #292 )
2017-06-02 16:16:34 +00:00
Viktor
744b9c08d2
comment out excessive debug logging
2017-06-02 12:01:43 +03:00
Viktor
8ae95e1d5c
Change unique index to non-unique on vesting_balance_objects
2017-06-02 11:58:58 +03:00
Viktor
a06096d0dd
[DLN] revert some test code related to worker-pay that was inadvertently committed in a larger commit
2017-06-02 11:58:23 +03:00
Eric Frias
cc77db0410
comment out excessive debug logging
2017-06-01 17:05:35 -04:00
Eric Frias
3cc82f0022
Change unique index to non-unique on vesting_balance_objects
2017-06-01 15:27:38 -04:00
SynaptiCAD User
e3b4c28f9b
[DLN] revert some test code related to worker-pay that was inadvertently committed in a larger commit
2017-06-01 11:38:27 -04:00
Viktor
77fb78b841
Fix a bug where initial_bts_accounts' balances weren't correctly accounted in total_supply
2017-06-01 09:52:18 +03:00
Viktor
f90c8a4101
[DLN] added code to test participation rate using ./tests/chain_test --run_test=operation_tests/witness_create, currently passes when test is set to use shuffle (which I've set as default) but fails for RNG
2017-06-01 09:50:55 +03:00
Viktor
074817f29a
[DLN] fixed missed_count for participation_rate calculateion on RNG, also hopefully fix missed block count for individual witnesses
2017-06-01 09:46:16 +03:00
Eric Frias
7f44b793c1
Fix a bug where initial_bts_accounts' balances weren't correctly accounted in total_supply
2017-05-31 18:06:11 -04:00
SynaptiCAD User
50f474a8bf
[DLN] added code to test participation rate using ./tests/chain_test --run_test=operation_tests/witness_create, currently passes when test is set to use shuffle (which I've set as default) but fails for RNG
2017-05-30 18:49:15 -04:00
SynaptiCAD User
80e1be9ee0
[DLN] fixed missed_count for participation_rate calculateion on RNG, also hopefully fix missed block count for individual witnesses
2017-05-30 14:50:49 -04:00
PBSA Github Manager
e180475f5f
Ensure the transaction signature is validated.
2017-05-28 02:00:18 -03:00
PBSA Github Manager
017d37ed6b
fixed update witness operation - added new_initial_secret
2017-05-28 01:53:53 -03:00
PBSA Github Manager
42cd0a6fb1
fixed update witness operation - added new_initial_secret
2017-05-28 01:52:14 -03:00
PBSA Github Manager
4cc9f11fec
fixed update witness operation - added new_initial_secret
2017-05-28 01:50:33 -03:00
Ryan R. Fox
0fc6079828
Update db_block.cpp
...
Ensure the transaction signature is validated.
2017-05-27 16:42:21 -04:00
Roman Olearski
e6b58adbd1
fixed update witness operation - added new_initial_secret
2017-05-27 20:11:46 +02:00
kstdl
342e6db610
inital
2017-05-25 12:13:59 +03:00
Roman Olearski
74bcc3ed4f
Merge branch 'rock-paper-scissors' of https://bitbucket.org/peerplaysblockchain/peerplays-graphene into rock-paper-scissors
...
Conflicts:
libraries/chain/include/graphene/chain/config.hpp
2017-05-24 19:37:08 +02:00
Roman Olearski
71b53bbf26
changed to PPY core and BTS prefix
2017-05-24 19:34:39 +02:00
Eric Frias
90553db95b
Update key core asset and key prefix to PPY.
...
Add BitShares sharedrop balances, PEERPLAYS token balances, and reserved
accounts for exchanges to genesis file.
2017-05-24 13:19:02 -04:00
Roman Olearski
8d73141d8b
preparing genesis.json db_init.cpp for PPY
2017-05-23 18:21:51 +02:00
Vikram Rajkumar
f13698370b
Clean up replay logic; resolve #175
2017-05-21 18:40:54 -05:00
Abit
db9669a264
_apply_block: don't skip trx signature validation
2017-05-10 20:20:18 +02:00
Roman Olearski
2259224078
added missing reflection for chain parameter 'witness_schedule_algorithm'
2017-04-21 14:58:00 +02:00
Roman Olearski
27b5c978db
completing scheduled (restored) witnesses, setting as default
2017-04-21 14:24:40 +02:00
Roman Olearski
a8244963e7
shuffled witnesses repaired
2017-04-19 21:47:54 +02:00
Roman Olearski
90ec694446
integrating scheduled (old) and shuffled (current) witnesses
2017-04-19 20:31:00 +02:00
Roman Olearski
83c5be13f6
completing creating tournament test cases for assertions
2017-04-14 13:49:55 +02:00
Roman Olearski
509867655f
implementing tournament test cases for assertions
2017-04-12 17:26:51 +02:00
Roman Olearski
8be10bc6cf
Merge branch 'rock-paper-scissors' of https://bitbucket.org/peerplaysblockchain/peerplays-graphene into rock-paper-scissors
2017-04-11 12:43:49 +02:00
Roman Olearski
db2b397afd
Merge branch 'rock-paper-scissors' of http://syncad.storm.pl:56780/blocktrades/graphene into rock-paper-scissors
2017-04-11 11:38:08 +02:00
Roman Olearski
73d7dbf092
creating committee settable parameters for a bunch of constants in tournament_evaluator
2017-04-11 10:23:28 +02:00
Eric Frias
f7113d3d05
[DLN] change parameters to tournament_leave_operation to specify the account canceling the registration instead of the payer. The canceling acount must be either the payer or the player. Don't allow a player to leave a tournament once registration has been closed. Require player to be authorized for the asset being paid as tournament prize winnings during tournament_join_operation. Tests still need to be made for these changes.
2017-04-10 23:29:02 -04:00
Eric Frias
2b6be2a65e
Verify all account ids on whitelist are valid accounts
2017-04-10 15:50:36 -04:00
Roman Olearski
a74e66dd24
little fix in libraries/chain/tournament_evaluator.cpp, corrected comparison asset with integer
2017-04-10 20:07:08 +02:00
Roman Olearski
c60e88d054
Merge branch 'rock-paper-scissors' of http://syncad.storm.pl:56780/blocktrades/graphene into rock-paper-scissors
2017-04-10 19:07:56 +02:00
Dan Notestein
3b36205555
Limit games to 3 gestures because GUI wallet only supports 3 gesture games currently. Note that cli-wallet also supports 5 gesture games in theory, and the code can be expanded to support any odd number of gestures by giving the gestures names.
2017-04-10 11:55:31 -04:00
Dan Notestein
1aad7e4b74
Document limits on number_of_players in a tournament.
2017-04-10 14:42:34 +00:00
Dan Notestein
d5358c6eb0
Prevent creation of tournament with negative buy-in
2017-04-10 13:54:40 +00:00
Abit
2c05590cd4
Fix clear_expired_transactions memory leak #256
2017-04-09 00:20:13 +02:00
Roman Olearski
c16454890c
Implementing missing functionality (6)
...
Peerplays Blockchain pre-launch settings & modifications I II III
2017-04-08 20:16:05 +02:00
Roman Olearski
94ba6266c6
Implementing missing functionality (5)
...
Peerplays Blockchain pre-launch settings & modifications I II III
2017-04-08 15:50:13 +02:00
Roman Olearski
33e2f4fd14
Implementing missing functionality
...
Peerplays Blockchain pre-launch settings & modifications I II III
Merge branch 'rock-paper-scissors' of http://syncad.storm.pl:56780/blocktrades/graphene into rock-paper-scissors-ro
2017-04-07 17:28:53 +02:00
Roman Olearski
66208a2d9e
I. DEX
...
Task: The Peerplays DEX should only allow UIA and sidechain assets to be paired (traded) with the core token (PPY).
2017-04-06 09:46:17 +02:00