Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Additionally, the election scheduler will now consider the max of current or previous balance, so if an account sends its entire balance, it will no longer be placed in the lowest priority bucket.
# Based on: https://github.com/clemahieu/nano-node/blob/d718d697796085c43ca0c575f85f132bb46d3028/nano/node/prioritization.cpp#L50 bucket_region_starting_point = [0, 88, 92, 96, 100, 104, 108, 112, 116, 120, 128] # Bits that define bucket regions bucket_count = [1, 2, 4, 8, 16, 16, 8, 4, 2, 1] # The number of sub-buckets within a given region; E.g. 0-88 has 1 bucket, 88-92 has 2, 92-96 has 4, etc # Column headers: print ( f'{"BucketNumber":<14}' + f'{"BucketRegion":<20}' + f'{"Nano":<50}' + f'{"Raw":<30}' ) # Counter to track total buckets total_count = 0 # Counter to loop through bucket_region_starting_point x = 0 while x < len(bucket_region_starting_point)-1: # Variable to determine the int size of sub-buckets within the primary bucket ranges bucket_increase = int( ((1<