Skip to content

Commit

Permalink
Merge pull request #847 from koinos/verify-payer
Browse files Browse the repository at this point in the history
Verify the transaction payer exists
  • Loading branch information
sgerbino authored Jan 15, 2025
2 parents c436196 + 9b59166 commit b5515de
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/koinos/chain/controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,10 @@ void controller_impl::validate_transaction( const protocol::transaction& t )
missing_required_arguments_exception,
"missing expected field in transaction: ${field}",
( "field", "header" )( "transaction_id", util::to_hex( t.id() ) ) );
KOINOS_ASSERT( t.header().payer().size(),
missing_required_arguments_exception,
"missing expected field in transaction: ${field}",
( "field", "payer" )( "transaction_id", util::to_hex( t.id() ) ) );
KOINOS_ASSERT( t.header().rc_limit(),
missing_required_arguments_exception,
"missing expected field in transaction header: ${field}",
Expand Down

0 comments on commit b5515de

Please sign in to comment.