Skip to content

Commit

Permalink
Move fee schedule reflection into a new file
Browse files Browse the repository at this point in the history
  • Loading branch information
abitmore committed Jun 5, 2021
1 parent f41db5c commit de8242f
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 5 deletions.
1 change: 1 addition & 0 deletions libraries/protocol/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ list(APPEND SOURCES account.cpp
chain_parameters.cpp
fee_schedule.cpp
fee_schedule_calc.cpp
fee_schedule_reflect.cpp
memo.cpp
proposal.cpp
transfer.cpp
Expand Down
5 changes: 0 additions & 5 deletions libraries/protocol/fee_schedule_calc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,8 @@

#include <graphene/protocol/fee_schedule.hpp>

#include <fc/io/raw.hpp>
#include <fc/uint128.hpp>

#define MAX_FEE_STABILIZATION_ITERATION 4

namespace graphene { namespace protocol {

struct calc_fee_visitor
Expand Down Expand Up @@ -96,5 +93,3 @@ namespace graphene { namespace protocol {
}

} } // graphene::protocol

GRAPHENE_IMPLEMENT_EXTERNAL_SERIALIZATION( graphene::protocol::fee_schedule )
29 changes: 29 additions & 0 deletions libraries/protocol/fee_schedule_reflect.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*
* Copyright (c) 2015 Cryptonomex, Inc., and contributors.
*
* The MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/

#include <graphene/protocol/fee_schedule.hpp>

#include <fc/io/raw.hpp>

GRAPHENE_IMPLEMENT_EXTERNAL_SERIALIZATION( graphene::protocol::fee_schedule )

0 comments on commit de8242f

Please sign in to comment.