From a55b348e6c6455f9482bb5cfcd6f649d5c297d63 Mon Sep 17 00:00:00 2001 From: Daniel Larimer Date: Tue, 21 Jul 2015 08:34:38 -0400 Subject: [PATCH] #170 Make sure TEMP ACCOUNT cannot be updated --- libraries/chain/protocol/account.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/chain/protocol/account.cpp b/libraries/chain/protocol/account.cpp index d9572707..b1bec699 100644 --- a/libraries/chain/protocol/account.cpp +++ b/libraries/chain/protocol/account.cpp @@ -157,6 +157,7 @@ share_type account_update_operation::calculate_fee( const fee_parameters_type& k void account_update_operation::validate()const { + FC_ASSERT( account != GRAPHENE_TEMP_ACCOUNT ); FC_ASSERT( fee.amount >= 0 ); FC_ASSERT( account != account_id_type() ); FC_ASSERT( owner || active || new_options );