mirror of
https://github.com/wownero/wownero.git
synced 2026-11-26 02:33:55 +01:00
wallet: Improve Fee Priority Code for Clarity
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
|
||||
namespace tools
|
||||
{
|
||||
enum class fee_algorithm : int
|
||||
{
|
||||
Unset = -1,
|
||||
PreHardforkV3, /* Original */
|
||||
HardforkV3,
|
||||
HardforkV5,
|
||||
HardforkV8,
|
||||
};
|
||||
|
||||
namespace fee_algorithm_utilities
|
||||
{
|
||||
static int as_integral(const fee_algorithm algorithm)
|
||||
{
|
||||
return static_cast<int>(algorithm);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user