Commit graph

83 commits

Author SHA1 Message Date
theoreticalbts
15c455dc63 Make margin_call_limit_test pass after hardfork #436 2015-12-07 15:00:46 -05:00
theoreticalbts
d821d4a993 Get rid of enforce_white_list() #416 2015-10-30 14:35:50 -04:00
theoreticalbts
9d3652e9ec Fix tests to obey new feed publishing requirement !core_exchange_rate.is_null() 2015-10-29 10:42:32 -04:00
Daniel Larimer
bf4f9ab916 fix some unit tests by renaming BITUSD to USDBIT
Some unit tests broke after making assets with BIT prefix illegal.
2015-10-19 16:49:05 -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
0106a896dc operation_tests.cpp: Fix black_swan_issue_346 test 2015-10-08 15:26:13 -04:00
Daniel Larimer
f05a7bbc97 fix warning 2015-10-02 16:12:06 -04:00
theoreticalbts
db84a492b9 Implement unit test for #350 2015-10-02 10:53:31 -04:00
theoreticalbts
9d5a5dd21c Implement unit test for #346 2015-10-01 12:26:03 -04:00
theoreticalbts
8de583b0a1 Fix unit tests 2015-09-21 17:36:45 -04:00
theoreticalbts
19d10e462c Implement GRAPHENE_PROXY_TO_SELF_ACCOUNT #267 2015-08-26 17:09:49 -04:00
theoreticalbts
3eedabbac2 Compute scaled precision at compile time, use in tests (fixes failures by prev commit) 2015-08-11 15:04:48 -04:00
theoreticalbts
44c174ad4a config.hpp: Remove CORE constant 2015-08-11 13:14:57 -04:00
theoreticalbts
2e9876b557 Implement chain-locked transactions 2015-08-06 12:56:37 -04:00
theoreticalbts
6bebdbad1c Make unit tests query get_slot_time() instead of doing own time computations
Fixed unit tests:  witness_apy_test, generate_empty_blocks, undo_block,
fork_blocks, undo_pending, switch_forks_undo_create, duplicate_transactions,
tapos, change_block_interval
2015-07-28 11:58:22 -04:00
theoreticalbts
86456ba6e0 tests: Set expirations with helper function instead of ad hoc in each test 2015-07-23 17:01:39 -04:00
theoreticalbts
f06a5dccda operation_tests.cpp: Remove unimplemented bulk_discount_test #169 2015-07-21 16:07:14 -04:00
theoreticalbts
1430fab0f4 operation_tests.cpp: Add messages to update_uia test, fix check failing due to previous commit 2015-07-21 16:07:14 -04:00
theoreticalbts
5655d47a6f operation_tests.cpp: Delete unimp_transfer_cashback_test, superseded by cashback_test 2015-07-17 19:15:29 -04:00
theoreticalbts
d52461b77b operation_tests.cpp: Implement reserve_asset_test 2015-07-17 15:54:18 -04:00
Daniel Larimer
dc8849f23b Active key is not required when owner key present
- when updating account there is no need to sign with the active key if
 the owner has signed.
 - when updating an account the active key is enough to update the
 active key.
2015-07-16 16:09:32 -04:00
theoreticalbts
c527b2d41e operation_tests.cpp: Implement cover_with_collateral_test 2015-07-16 15:32:58 -04:00
theoreticalbts
8cc683374a operation_tests.cpp: set_expiration_time in transfer_core_asset test 2015-07-15 16:43:42 -04:00
theoreticalbts
15724170b8 Fix test failures due to now-required expiration 2015-07-15 13:53:55 -04:00
theoreticalbts
a751d90e00 Move witness pay to VBO, update test #142 2015-07-15 12:36:26 -04:00
Daniel Larimer
cfa95a3f57 Issue #157 - make trx expiration absolute
This is done to comply with the policy that transactions should be self
describing and not depend upon implied state.  This makes things easier
for everyone to understand exactly when a transaction will be invalid
without having to refer to chain state.
2015-07-14 18:46:58 -04:00
Vikram Rajkumar
2f429e07f1 Rename bad references to delegate -> committee member; #147 2015-07-13 16:08:17 -04:00
Vikram Rajkumar
6043586d15 Rename bad references to delegate -> witness; #147 2015-07-13 16:08:17 -04:00
Vikram Rajkumar
70b77be3bc Rename bad references to genesis account -> committee account; #147 2015-07-13 16:08:16 -04:00
Vikram Rajkumar
34598df149 Fix a test failure 2015-07-13 16:08:16 -04:00
Daniel Larimer
10bd652168 fix uia_transfer test, update transfer error messages 2015-07-09 16:21:40 -04:00
Daniel Larimer
014e6e7b79 fix uia_fees test 2015-07-09 16:05:57 -04:00
Daniel Larimer
9e150df605 Fix withdraw_witness_pay test 2015-07-09 15:55:10 -04:00
Daniel Larimer
9699be84e6 Progress on #144 2015-07-09 11:40:37 -04:00
Daniel Larimer
c8f0ea4abe It now builds #144 2015-07-09 09:56:50 -04:00
theoreticalbts
4229e33525 tests: replace BOOST_REQUIRE_THROW / BOOST_CHECK_THROW with GRAPHENE_*_THROW 2015-07-08 13:53:08 -04:00
Daniel Larimer
b1dd41ff3a Refactor get_required_auths on operations 2015-07-07 10:57:01 -04:00
Daniel Larimer
68fabe1464 Progress #127 - importing balances 2015-07-02 11:18:52 -04:00
Daniel Larimer
fefa0f65f8 Issue #106 - Removing KeyObject
- this is a major refactor of the code and may have broken some behavior
in the wallet or witness nodes.
- this commit changes the serialization of operations
- the chain_tests pass
2015-07-02 01:52:45 -04:00
Daniel Larimer
4bbaad02a7 Progress on Burn, Reserve, Issue, Retire #108 2015-07-01 14:05:42 -04:00
Vikram Rajkumar
f0ea015ccf Clean up is_valid_name and remove child accounts; #15, #93 2015-06-29 15:25:53 -04:00
Peter Conrad
18808b44ae Fixed build 2015-06-29 11:46:16 +02:00
theoreticalbts
6944a3fe1f operation_tests.cpp: Remove redundant unimplemented tests 2015-06-23 18:05:47 -04:00
Vikram Rajkumar
b63de0ad29 Fix some compiler warnings 2015-06-23 17:54:59 -04:00
Nathan Hourt
cfcafcb5c2 Progress #66: Set initial fees
There is now a default value for all fees
2015-06-23 17:09:55 -04:00
Nathan Hourt
08cba191c7 Progress #66: Audit calculate_fee implementations
I've audited all the calculate_fee impls and they all should be
reasonable at this point.

TODO: Set default fee values.
2015-06-23 14:19:39 -04:00
Daniel Larimer
06a9488f8b Issue #53 - flexible vesting balance creation
Use static variant to allow the types of vesting balances to be easily
extended and the creation operation allows for many different types of
initialization parameters.

Added a check that requires a minimum claim date which allows creating
of vesting balance objects with a cliff.
2015-06-23 10:14:40 -04:00
Daniel Larimer
758d588aa1 switch to rationals 2015-06-22 15:04:19 -04:00
Daniel Larimer
177950b791 Fix margin call price calculation 2015-06-21 19:37:14 -04:00