Nathan Hourt
f076bb2586
Ref #1506 : Move ID types from db to protocol
...
The ID types, object_id and object_id_type, were defined in the db
library, and the protocol library depends on db to get these types.
Technically, the ID types are defined by the protocol and used by the
database, and not vice versa. Therefore these types should be in the
protocol library, and db should depend on protocol to get them.
This commit makes it so.
2020-08-23 14:37:02 -05:00
Nathan Hourt
9bada13735
Ref #1506 : Add object_downcast_t
...
Allows the more concise expression `object_downcast_t<xyz>` instead of
the old `typename object_downcast<xyz>::type`
2020-08-23 14:37:02 -05:00
Nathan Hourt
14f627c014
Ref #1506 : Isolate chain/protocol to its own library
2020-08-23 14:37:00 -05:00
Nathan Hourt
9ac63ce0b3
Fixes
...
Remove boost::signals from build system; it's header-only so it's not
listed in cmake anymore.
Also remove some unused hashing code
2020-08-23 14:18:59 -05:00
Peter Conrad
f25c4f6ae6
Replace fc::uint128 with boost::multiprecision::uint128_t
2020-08-23 14:16:41 -05:00
Miha Čančula
97f9875918
Merge branch 'develop' into GRPH-50-network_broadcast_api-fix-v2
2019-09-21 17:17:19 +02:00
Miha Čančula
94157497bb
Merge branch 'develop' into feature/GRPH-93-v2
2019-09-18 18:19:17 +02:00
Miha Čančula
499a5fc33e
Merge branch 'develop' into GRPH-50-network_broadcast_api-fix-v2
2019-09-18 16:36:42 +02:00
Alfredo Garcia
d911b3db69
Merge branch 'develop' into GRPH-75
2019-09-17 15:53:18 -03:00
Ronak Patel
646dc2e548
Merged Bitshares PR #1462 and compilation fixes
2019-09-10 18:56:27 +05:30
Peter Conrad
7d0d61ab43
Fixed undo_database
2019-09-02 17:19:21 +03:00
Peter Conrad
95a5b57c4f
Writing the object_database is now almost atomic
2019-09-02 17:19:21 +03:00
Peter Conrad
b71f20e060
Dont leave _data_dir empty if db is locked
2019-09-02 17:19:21 +03:00
Peter Conrad
c8f8f1a44b
Fixed lock detection
2019-09-02 17:19:21 +03:00
Peter Conrad
17417037c6
Moved reindex logic into database / chain_database, make use of additional blocks in block_database
...
Fixed tests wrt db.open
2019-09-02 17:19:21 +03:00
Abit
a49f8bf47c
Merge pull request #714 from pmconrad/json_fix
...
JSON fix
2019-08-28 15:42:21 +02:00
Sandip Patel
0d0a6b7c74
Fixed error while loading object database
2019-08-28 12:11:43 +05:30
pbattu
0f06a9af2a
Required changes to upgrade blockchain to ubuntu18.04
2019-05-20 22:32:17 -03:00
Vikram Rajkumar
4e4a359fb9
Merge commit '5da213f' into bitshares
2016-11-17 15:17:27 -06:00
Nathan Hourt
dc9e0fa025
Fix index.hpp
...
Bad return type.
2016-11-07 17:44:57 -06:00
Nathan Hourt
c108a78b35
Resove #651 : Make add_secondary_index return index
...
A pointer to the newly created index object is now returned.
2016-11-07 17:44:37 -06:00
Nathan Hourt
a22e628910
Add compile-time sanity check to generic_index
...
generic_index::find fails at runtime if the boost multi_index_container's first index is not an index of object_id_type, and the cause of this failure is nonobvious from the error message. This compile-time check will fail if any generic_index is created around a multi_index_container whose first index is not an index on object_id_type, with a helpful error message explaining the problem, so no one else will ever have to debug this issue. :)
2016-07-06 18:18:41 -05:00
Nathan Hourt
b2835bc02d
Add headers to install targets
2016-03-17 17:16:13 -05:00
theoreticalbts
77ac461a8a
Implement debug_node target #606
2016-03-15 13:36:29 -04:00
theoreticalbts
4a6de2fba7
Merge branches '492-bugfix-close-logic', '550-cleanup-remove-evaluation-observer' and '581-cleanup-object-operators' into develop
2016-02-15 16:01:27 -05:00
Daniel Larimer
c63b624caf
fix build errors and warnings
...
This commit was rebased by theoreticalbts and assigned issue #581
Conflict with 146c0c4d8e was resolved, minor improvements.
2016-02-15 16:01:13 -05:00
theoreticalbts
b93540cb5d
Merge branch '553-cleanup-remove-type-serializer' into develop
2016-02-12 00:11:43 -05:00
theoreticalbts
ead3f951a2
Remove type_serializer, re-implement minimal functionality needed by cli_wallet #553
2016-02-12 00:10:52 -05:00
Daniel Larimer
146c0c4d8e
Clean up some non-determisitic behavior, maybe fix #485
...
1. Replace ordered_non_unique indexes with composite keys / ordered_unique, using object_id as tiebreaker.
2. Make some casts more explicit.
This commit was rebased by theoreticalbts due to conflicts with the patches for #466 #562 including bugfixes
- Fix flipped comparison operator
- Implement operator> and operator!= for object_id_type
2016-02-11 13:02:11 -05:00
Fabian Schuh
5111084730
[License] Modify cpp and hpp headers to MIT #496
2016-01-07 11:44:52 -05:00
theoreticalbts
c2943ee3bb
undo_database.cpp: Handle unimplemented upd+del case
2015-12-09 18:16:50 -05:00
theoreticalbts
44db4760a1
undo_database.cpp: Refactor undo_database::merge() code
...
This commit does not change semantics at all, it just changes the layout of the code and adds comments.
2015-12-09 18:16:50 -05:00
theoreticalbts
032eeda416
generic_index.hpp: Change sparse_index to use ordered_unique
2015-10-30 16:02:36 -04:00
theoreticalbts
0d55541682
object_id.hpp: Implement std::string() conversion for object_id_type
2015-10-23 15:00:31 -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
Daniel Larimer
f7c91be622
fix market history
2015-10-09 16:31:40 -04:00
Daniel Larimer
45f7819aba
adding some hashing methods to db for debugging
2015-10-08 13:40:01 -04:00
theoreticalbts
00253b396e
object_database.cpp: Don't crash when a bogus type_id is passed
2015-09-29 12:09:43 -04:00
Daniel Larimer
edcd46dd14
fix reindex with failed proposed transaction
2015-09-29 10:49:12 -04:00
theoreticalbts
1fb327f6a0
object_id.hpp: Add is<T>() and as<T>() template functions to object_id_type
2015-09-28 12:15:17 -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
b8e16e2e94
fix object id math
2015-08-27 10:45:44 -04:00
Daniel Larimer
2464b788ad
improve reindexing performance
2015-08-24 17:57:44 -04:00
theoreticalbts
c7444f8d4d
Implement minimal "make install" command #219
2015-08-06 12:40:53 -04:00
Eric Frias
6d2b1a3648
Win32 compile fixes (missing includes, workaround for bugs in c++ parser)
2015-07-27 12:09:34 -04:00
Daniel Larimer
7f54d3d077
Issue #160 - Dynamic Undo History / Minority Fork
...
The blockchain now has a minimal participation requirement that can only
be overridden with checkpoints. Any time participation falls below a
minimal level no new blocks may be added.
Currently it requires 66% participation and tolerates short periods of
time below 66% participation with a maximum of 500 consecutive blocks
missed. For every two blocks produced 1 can be missed with a slack of
999 bias.
2015-07-15 14:13:24 -04:00
Daniel Larimer
da254cdbff
Fix #158 - block summary database now only has 2^16 entries
2015-07-14 17:56:42 -04:00
theoreticalbts
ae7b904e4a
Clean up some unused files
2015-07-09 11:59:06 -04:00
Daniel Larimer
871aa734ae
Update documentation and fix error messages, Fix #127
2015-07-02 12:11:43 -04:00