This repository has been archived by the owner on Oct 4, 2019. It is now read-only.
forked from steemit/steem
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use account & permlink maps in state serializer #1133
+ store accounts index first + use variable length idx for map lookup
- Loading branch information
Showing
2 changed files
with
127 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#pragma once | ||
|
||
// this file must only be included from serialize_state.cpp | ||
// required to declare some packers before <fc/io/raw.hpp> so they become visible to compiler | ||
|
||
namespace fc { | ||
class uint128_t; | ||
template<typename Storage> class fixed_string; | ||
} | ||
namespace golos { namespace chain { | ||
using account_name_type = fc::fixed_string<fc::uint128_t>; | ||
struct shared_authority; | ||
}} | ||
namespace golos { namespace protocol { | ||
struct beneficiary_route_type; | ||
}} | ||
|
||
|
||
namespace fc { namespace raw { | ||
|
||
template<typename S> void pack(S&, const golos::chain::account_name_type&); | ||
template<typename S> void pack(S&, const golos::chain::shared_authority&); | ||
template<typename S> void pack(S&, const golos::protocol::beneficiary_route_type&); | ||
|
||
}} // fc::raw |