host/test_wallet.c
/** This will be called by sanitiseNonVolatileStorage() every time it
  * clears the version field of a wallet. This is used to test whether
  * sanitiseNonVolatileStorage() is clearing version fields properly.
  * \param address The address (in non-volatile storage) where the cleared
  *                version field is.
  */
This will be called by sanitiseNonVolatileStorage() every time it
clears the version field of a wallet. This is used to test whether
sanitiseNonVolatileStorage() is clearing version fields properly.
\param address The address (in non-volatile storage) where the cleared
version field is.
This will be called by sanitiseNonVolatileStorage () every time it clears the version field of a wallet . This is used to test whether sanitiseNonVolatileStorage () is clearing version fields properly . \ param address The address ( in non - volatile storage ) where the cleared version field is .
void logVersionFieldWrite(uint32_t address)
{
    if (version_field_index < (int)(sizeof(version_field_writes) / sizeof(uint32_t)))
        version_field_writes[version_field_index++] = address;
}
void logVersionFieldWrite ( uint32_t address ) { if ( version_field_index < ( int ) ( sizeof ( version_field_writes ) / sizeof ( uint32_t ) ) ) version_field_writes [ version_field_index ++ ] = address ; }
This will be called by sanitiseNonVolatileStorage() every time it
 clears the version field of a wallet.
This will be called by sanitiseNonVolatileStorage () every time it clears the version field of a wallet .