Skip to content

Commit

Permalink
Documentation cleanup steemit#2458
Browse files Browse the repository at this point in the history
  • Loading branch information
sgerbino committed Oct 23, 2018
1 parent 6a6d3c2 commit 3b1cc63
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ DEFINE_API_IMPL( transaction_status_api_impl, find_transaction )
{
const auto& expiration = *args.expiration;

// Check if the expiration is before our earliest tracked block
// Check if the expiration is before our earliest tracked block plus maximum transaction expiration
auto earliest_tracked_block = _db.fetch_block_by_number( earliest_tracked_block_num );
if ( expiration < earliest_tracked_block->timestamp + STEEM_MAX_TIME_UNTIL_EXPIRATION )
return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,19 @@
* window of uncertainty trackable
* .-------------------------. .---------------------------.
* | | |
* <- - - - - - - - - - - [*] - - - - - - - - - - - - [*] - - - - - - - - - - - - - [*]
* <- - - - - - - - - - [*] - - - - - - - - - - - - [*] - - - - - - - - - - - - - [*]
* / | \
* actual block depth nominal block depth head block
*
* Notes:
*
* > Within the window of uncertainy, if the transaction is found we will return the status
* - Within the window of uncertainy, if the transaction is found we will return the status
* If the transaction is not found and an expiration is provided, we will return `too_old`
*
* > Within the trackable range, if the transaction is found we will return the status
* - Within the trackable range, if the transaction is found we will return the status
* If the transaction is not found and an expiration is provided we will return the expiration status
*
* > Nominal values are values provided by the user
* - Nominal values are values provided by the user
*
* > Actual values are calculated and used to determine when tracking needs to begin
* - Actual values are calculated and used to determine when tracking needs to begin
* see `plugin_initialize`
*/

Expand Down
2 changes: 1 addition & 1 deletion tests/plugin_tests/transaction_status.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ BOOST_AUTO_TEST_CASE( transaction_status_functionality_test )

generate_blocks( TRANSACTION_STATUS_TEST_BLOCK_DEPTH );

// Transaction 1 is tracked
// Transaction 1 exists in a block
tso = db->find< transaction_status_object, by_trx_id >( tx1.id() );
BOOST_REQUIRE( tso != nullptr );
BOOST_REQUIRE( tso->block_num > 0 );
Expand Down

0 comments on commit 3b1cc63

Please sign in to comment.