src/securityPolicy.c
bool isTxNetworkIdVerifiable(
        bool includeNetworkId,
        uint32_t numOutputs,
        uint32_t numWithdrawals,
        sign_tx_signingmode_t txSigningMode
)
{
	if (includeNetworkId) return true;

	if (numOutputs > 0) return true;
	if (numWithdrawals > 0) return true;

	switch (txSigningMode) {

	case SIGN_TX_SIGNINGMODE_POOL_REGISTRATION_OPERATOR:
	case SIGN_TX_SIGNINGMODE_POOL_REGISTRATION_OWNER:
		// pool registration certificate contains pool reward account
		return true;

	default:
		return false;
	}
}
// true iff tx contains an element with network id
true iff tx contains an element with network id
true iff tx contains an element with network id
bool isTxNetworkIdVerifiable(
        bool includeNetworkId,
        uint32_t numOutputs,
        uint32_t numWithdrawals,
        sign_tx_signingmode_t txSigningMode
)
{
	if (includeNetworkId) return true;
	if (numOutputs > 0) return true;
	if (numWithdrawals > 0) return true;
	switch (txSigningMode) {
	case SIGN_TX_SIGNINGMODE_POOL_REGISTRATION_OPERATOR:
	case SIGN_TX_SIGNINGMODE_POOL_REGISTRATION_OWNER:
		return true;
	default:
		return false;
	}
}
bool isTxNetworkIdVerifiable ( bool includeNetworkId , uint32_t numOutputs , uint32_t numWithdrawals , sign_tx_signingmode_t txSigningMode ) { if ( includeNetworkId ) return true ; if ( numOutputs > 0 ) return true ; if ( numWithdrawals > 0 ) return true ; switch ( txSigningMode ) { case SIGN_TX_SIGNINGMODE_POOL_REGISTRATION_OPERATOR : case SIGN_TX_SIGNINGMODE_POOL_REGISTRATION_OWNER : return true ; default : return false ; } }
true iff tx contains an element with network id
true iff tx contains an element with network id
// pool registration certificate contains pool reward account