Commit 8e1a3777 authored by Bartek Wrona's avatar Bartek Wrona

Partially eliminated IS_LOW_MEM #ifdefs breaking reward calculations. Still...

Partially eliminated IS_LOW_MEM #ifdefs breaking reward calculations. Still code must be cleaned and all code (specific to comment-content, child-parent comment traversal) which was performed only on FAT node.
parent eeaa80e8
......@@ -2606,12 +2606,10 @@ share_type database::pay_curators( const comment_object& comment, const comment_
pre_push_virtual_operation( vop );
} );
#ifndef IS_LOW_MEM
modify( voter, [&]( account_object& a )
{
a.curation_rewards += claim;
});
#endif
post_push_virtual_operation( vop );
}
} FC_CAPTURE_AND_RETHROW( (*item) ) }
......@@ -2731,7 +2729,6 @@ share_type database::cashout_comment_helper( util::comment_reward_context& ctx,
pre_push_virtual_operation( vop );
post_push_virtual_operation( vop );
#ifndef IS_LOW_MEM
modify( comment_cashout, [&]( comment_cashout_object& c )
{
c.author_rewards += author_tokens;
......@@ -2741,8 +2738,6 @@ share_type database::cashout_comment_helper( util::comment_reward_context& ctx,
{
a.posting_rewards += author_tokens;
});
#endif
}
if( !has_hardfork( HIVE_HARDFORK_0_17__774 ) )
......
......@@ -95,9 +95,7 @@ namespace hive { namespace chain {
: id( _id ), from( _from ), to( _to ), memo( a ), request_id( _request_id ),
amount( _amount ), complete( _time_of_completion )
{
#ifndef IS_LOW_MEM
from_string( memo, _memo );
#endif
}
//amount of savings to withdraw (HIVE or HBD)
......
......@@ -359,11 +359,7 @@ BOOST_AUTO_TEST_CASE( account_update_apply )
BOOST_REQUIRE( acct.memo_key == new_private_key.get_public_key() );
/* This is being moved out of consensus
#ifndef IS_LOW_MEM
BOOST_REQUIRE( acct.json_metadata == "{\"bar\":\"foo\"}" );
#else
BOOST_REQUIRE( acct.json_metadata == "" );
#endif
*/
validate_database();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment