CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
22 #include <boost/exception/diagnostic_information.hpp>
24 namespace catapult {
namespace utils {
27 #define EXCEPTION_DIAGNOSTIC_MESSAGE() std::endl << boost::current_exception_diagnostic_information()
30 #define UNHANDLED_EXCEPTION_MESSAGE(ACTION) "unhandled exception while " << ACTION << "!" << EXCEPTION_DIAGNOSTIC_MESSAGE()
void addServiceRegistrar(std::unique_ptr< ServiceRegistrar > &&pServiceRegistrar)
Adds a service registrar (pServiceRegistrar).
Definition: ExtensionManager.cpp:42
model::AccountAddressNotification Notification
Definition: AddressValidator.cpp:27
PLUGIN_API void RegisterExtension(catapult::extensions::ProcessBootstrapper &bootstrapper)
Entry point for registering a dynamic extension module with bootstrapper.
Definition: EventSourceExtension.cpp:35
#define PLUGIN_API
Definition: plugins.h:30
ExtensionManager & extensionManager()
Gets the extension manager.
Definition: ProcessBootstrapper.cpp:67
Definition: AddressExtractionExtension.cpp:28
Process bootstrapper.
Definition: ProcessBootstrapper.h:42
DEFINE_STATELESS_VALIDATOR(TransactionFee, [](const auto ¬ification) { if(notification.Fee > notification.MaxFee) return Failure_Core_Invalid_Transaction_Fee;constexpr auto Max_Raw_Block_Fee_Multiplier=static_cast< uint64_t >(std::numeric_limits< BlockFeeMultiplier::ValueType >::max());return notification.MaxFee.unwrap() > Max_Raw_Block_Fee_Multiplier *notification.TransactionSize ? Failure_Core_Invalid_Transaction_Fee :ValidationResult::Success;})