Commit graph

458 commits

Author SHA1 Message Date
theoreticalbts
9ccbc55ba6 Implement chain_id #374 2015-10-12 13:32:47 -04:00
Eric Frias
9c650bddb0 Make conversions from boost's uint128_t to builtin int64_t explicit, without these
the compiler prefers to convert through operator bool yielding either 1 or 0.
2015-10-10 17:13:56 -04:00
theoreticalbts
434efcaa47 asset_evaluator.cpp: Fix compiler warning 2015-10-09 15:38:34 -04:00
theoreticalbts
f0f96d5a8f Allow witness-fed and committee-fed BitAsset feeds to be specified in flags.
This is only technically a hardfork, in order to actually desync the chain
the witness account / committee account would need to pass a proposal to do
something in their capacity as the owner of an asset_object.  It should be
fairly safe to say that this will not occur on testnet until witnesses have
upgraded.
2015-10-09 13:23:55 -04:00
Eric Frias
7fe0e64a5e Fix two places where objects were being used after they were deleted 2015-10-09 11:43:23 -04:00
Eric Frias
2a07fba3c2 Win32 compile fixes (#warning) 2015-10-09 11:43:22 -04:00
Daniel Larimer
e68e99ed3a Merge branch 'master' of github.com:cryptonomex/graphene 2015-10-08 16:57:45 -04:00
Daniel Larimer
514148d780 Fix #349 - Prevent potential overflow on rational math 2015-10-08 16:57:19 -04:00
theoreticalbts
97423812a1 db_init.cpp: Check for imbalanced assets 2015-10-08 16:16:51 -04:00
Daniel Larimer
edee4ffd48 fix for syncing 2015-10-08 15:58:13 -04:00
Daniel Larimer
e2b5b24f5d Merge branch 'master' of github.com:cryptonomex/graphene 2015-10-08 15:41:13 -04:00
Daniel Larimer
6bf35c52a4 adding debug 2015-10-08 15:41:10 -04:00
theoreticalbts
43a2660143 db_management.cpp: Allow us to skip rewind on close() 2015-10-08 15:26:13 -04:00
theoreticalbts
5b4398fb44 db_block.cpp: Respect skip_block_size_check when generating block 2015-10-08 15:26:13 -04:00
theoreticalbts
3f00bd81b9 HARDFORK Disallow publishing certain malformed price feeds, fix #357 2015-10-08 15:26:13 -04:00
theoreticalbts
9b910ee1a4 HARDFORK Allow digits in asset name; fix #359 2015-10-08 15:26:13 -04:00
Eric Frias
5e6f5506ec Win32 compile fix (#warning) 2015-10-08 15:23:26 -04:00
Eric Frias
573a6d6e97 Win32 compile fix, add extra data to one call to FC_ASSERT for better debugging. 2015-10-08 15:17:01 -04:00
Daniel Larimer
70fefe4f5f fix dreference of null 2015-10-08 15:11:32 -04:00
Daniel Larimer
eb1895ef55 fix derefrence of null, fix build, restore compat with oct5 test net 2015-10-08 15:03:35 -04:00
Daniel Larimer
be7c0076d0 fix dereferencing of deleted objects 2015-10-08 14:55:01 -04:00
Daniel Larimer
a536d39253 TESTNET RESET REQUIRED - convert all hashed indexs to ordered indexes
Fix #362 by replacing non-deterministic hashed indexes with ordered
indexes

Remove HARDFORK check for witness ordering because this #362 will
require a test net reset to effeciently implment.

Changed the order in wich process_fees iterates accounts to be "by_name"
rather than "by_id" so that we retain the ability to switch back to
hashed indexes in the future.

This change was overly pestimistic and assumes all indexes may be
traversed as part of consensus.  We want to reserve the ability to
change some of the indices back to hashed indicies in the future after a
through audit reveals that they are never iterated over in order.
2015-10-08 14:06:20 -04:00
theoreticalbts
bfef440968 fork_database.cpp: Fix overflow 2015-10-07 12:47:16 -04:00
Daniel Larimer
fe552a42d0 removing unnecessary assert 2015-10-07 11:09:28 -04:00
Daniel Larimer
8e96d9c89c clean up print statements, minimize undo/fork history 2015-10-07 10:15:32 -04:00
Daniel Larimer
f05475cc8f Fix #355 - Test Net HARDFORK at block 58500 2015-10-07 09:10:03 -04:00
Daniel Larimer
3ded0d4e77 adjust undo buffer based upon last_irreversible_block_num 2015-10-05 09:46:02 -04:00
Daniel Larimer
1e1617633c removing hard fork 2015-10-05 08:55:32 -04:00
theoreticalbts
93a108487d Implement last_irreversible_block_num 2015-10-02 17:19:23 -04:00
Daniel Larimer
5adb85cde9 Merge branch 'master' of github.com:cryptonomex/graphene 2015-10-02 16:06:30 -04:00
Daniel Larimer
3aafd6cf55 HARDFORK 8/3/2015 - fix calculation for number of witnesses
The new witness count calculation set a threshold equal to 50% of
all stake rather than 50% of all stake that has voted for at least 2
witnesses.
2015-10-02 15:40:58 -04:00
theoreticalbts
9b4be66aca db_update.cpp: If there is no feed, bail sooner in check_for_blackswan()
This is a performance optimization only, no semantics change.
2015-10-02 10:53:25 -04:00
Daniel Larimer
44a7376219 remove extra spam 2015-10-02 09:23:03 -04:00
Daniel Larimer
2ed45db75b remove hard fork code 2015-10-02 08:57:02 -04:00
Daniel Larimer
1137120aa2 address rounding errors in fee calculation 2015-10-01 16:32:30 -04:00
Daniel Larimer
18c0558e6f HARDFORK - dont count votes for 0 or 1 witnesses
Accounts that abstain from voting should not be factored into the
desired number of witnesses because it would heavily bias the count
toward 0.
2015-10-01 13:56:29 -04:00
Daniel Larimer
26288549e6 Fix blackswan on force settle, Fix #346 and #347
- fix detection and handling of black swan events
- fix total core in orders calculation from genesis
2015-09-30 18:30:44 -04:00
theoreticalbts
96e8f8dd6d cli_wallet: Improve propose_parameter_change interface 2015-09-29 11:55:26 -04:00
Daniel Larimer
650af1778d Merge branch 'master' of github.com:cryptonomex/graphene 2015-09-29 10:49:14 -04:00
Daniel Larimer
edcd46dd14 fix reindex with failed proposed transaction 2015-09-29 10:49:12 -04:00
theoreticalbts
9d3bcbb569 Provide objects to trace budget computations 2015-09-28 15:46:37 -04:00
Daniel Larimer
d3b283b60e Merge branch 'master' of github.com:cryptonomex/graphene 2015-09-28 15:42:52 -04:00
Daniel Larimer
b65763fdb6 added extra code to track a reverse index on whitelist/blacklist 2015-09-28 15:42:38 -04:00
theoreticalbts
a415dd6604 Don't use annotated_object #246 2015-09-28 12:15:17 -04:00
theoreticalbts
2cf80cd04a Remove vestigial meta objects #246 2015-09-28 12:15:17 -04:00
theoreticalbts
91af21d50c db_management.cpp: Properly clear_pending in close(), fix #336 2015-09-28 12:15:17 -04:00
theoreticalbts
8d52e2dda8 database: Scrub db in open() to force reindex if DB is outdated 2015-09-28 12:15:17 -04:00
theoreticalbts
8b98b6200b db_update.cpp: Fix compiler warning 2015-09-28 12:15:17 -04:00
theoreticalbts
0d7baa2b52 database: Remove obsolete retry_on_failure parameter 2015-09-28 12:15:17 -04:00
theoreticalbts
f972cff9d7 Clean up uninitialized integers 2015-09-28 12:15:17 -04:00