Example #1
0
        public static string ToLowerString(this BlockRewardType blockRewardType)
        {
            switch (blockRewardType)
            {
            case BlockRewardType.Block:
                return("block");

            case BlockRewardType.Uncle:
                return("uncle");

            case BlockRewardType.External:
                return("external");

            case BlockRewardType.EmptyStep:
                return("emptystep");

            default:
                throw new ArgumentOutOfRangeException(nameof(blockRewardType), blockRewardType, null);
            }
        }
Example #2
0
 public BlockReward(Address address, UInt256 value, BlockRewardType rewardType = BlockRewardType.Block)
 {
     Address    = address;
     Value      = value;
     RewardType = rewardType;
 }
Example #3
0
 public BlockReward(Address address, BigInteger value, BlockRewardType rewardType = BlockRewardType.Block)
 {
     Address    = address;
     Value      = value;
     RewardType = rewardType;
 }