Skip to content

Commit 7058b8d

Browse files
committed
blspy to 0.1.20 for a test fix and libsodium on Mac and Linux
1 parent 0491330 commit 7058b8d

File tree

3 files changed

+29
-27
lines changed

3 files changed

+29
-27
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
dependencies = [
55
"aiter==0.13.20191203", # Used for async generator tools
6-
"blspy==0.1.19", # Signature library
6+
"blspy==0.1.20", # Signature library
77
"cbor2==5.1.0", # Used for network wire format
88
"clvm==0.4", # contract language
99
"PyYAML==5.3", # Used for config file format

src/cmds/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
def create_parser():
1313
parser = argparse.ArgumentParser(
1414
description="Manage chia blockchain infrastructure (%s)." % __version__,
15-
epilog="You can combine -s and -c. Try 'watch -n 10 chia show -s -c' if you have 'watch' installed.",
15+
epilog="Try 'chia start node' or 'chat netspace -d 48'.",
1616
)
1717

1818
parser.add_argument(

src/cmds/netspace.py

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -14,33 +14,33 @@
1414
def make_parser(parser):
1515

1616
parser.add_argument(
17-
"-p",
18-
"--rpc-port",
19-
help=f"Set the port where the Full Node is hosting the RPC interface. See the rpc_port "
20-
f"under full_node in config.yaml. Defaults to 8555",
21-
type=int,
22-
default=8555,
17+
"-d",
18+
"--delta-block-height",
19+
help="Compare LCA to a block X blocks older. Defaults to 24 blocks",
20+
type=str,
21+
default="24",
2322
)
2423
parser.add_argument(
2524
"-o",
2625
"--old_block",
27-
help="Older block hash used to calculate estimated total network space.",
26+
help="Older block hash used to calculate estimated total network space. Requires -n [NEWER_BLOCK] also.",
2827
type=str,
2928
default="",
3029
)
3130
parser.add_argument(
3231
"-n",
3332
"--new_block",
34-
help="Newer block hash used to calculate estimated total network space.",
33+
help="Newer block hash used to calculate estimated total network space. Requires -o [OLDER_BLOCK] also.",
3534
type=str,
3635
default="",
3736
)
3837
parser.add_argument(
39-
"-d",
40-
"--delta-block-height",
41-
help="Compare LCA to a block X blocks older.",
42-
type=str,
43-
default="",
38+
"-p",
39+
"--rpc-port",
40+
help=f"Set the port where the Full Node is hosting the RPC interface. See the rpc_port "
41+
f"under full_node in config.yaml. Defaults to 8555",
42+
type=int,
43+
default=8555,
4444
)
4545
parser.set_defaults(function=netspace)
4646

@@ -75,7 +75,7 @@ async def get_total_miniters(rpc_client, old_block, new_block):
7575
)
7676
total_mi = uint64(total_mi + curr_mi)
7777

78-
print("Min iters:", total_mi)
78+
print("Minimum iterations:", total_mi)
7979
return total_mi
8080

8181

@@ -93,19 +93,21 @@ async def compare_block_headers(client, oldblock_hash, newblock_hash):
9393
block_newer_header.data.timestamp - block_older_header.data.timestamp
9494
)
9595
time_delta = datetime.timedelta(seconds=elapsed_time_seconds)
96-
print("Older Block", block_older_header.data.height, ":")
9796
print(
98-
f"Header Hash 0x{oldblock_hash}\n"
99-
f"Timestamp {block_older_time_string}\n"
100-
f"Weight {block_older_header.data.weight}\n"
101-
f"Total VDF Iterations {block_older_header.data.total_iters}\n"
97+
f"Older Block: {block_older_header.data.height}\n"
98+
f"Header Hash: 0x{oldblock_hash}\n"
99+
f"Timestamp: {block_older_time_string}\n"
100+
f"Weight: {block_older_header.data.weight}\n"
101+
f"Total VDF\n"
102+
f"Iterations: {block_older_header.data.total_iters}\n"
102103
)
103-
print("Newer Block", block_newer_header.data.height, ":")
104104
print(
105-
f"Header Hash 0x{newblock_hash}\n"
106-
f"Timestamp {block_newer_time_string}\n"
107-
f"Weight {block_newer_header.data.weight}\n"
108-
f"Total VDF Iterations {block_newer_header.data.total_iters}\n"
105+
f"Newer Block: {block_newer_header.data.height}\n"
106+
f"Header Hash: 0x{newblock_hash}\n"
107+
f"Timestamp: {block_newer_time_string}\n"
108+
f"Weight: {block_newer_header.data.weight}\n"
109+
f"Total VDF\n"
110+
f"Iterations: {block_newer_header.data.total_iters}\n"
109111
)
110112
delta_weight = block_newer_header.data.weight - block_older_header.data.weight
111113
delta_iters = (
@@ -149,7 +151,7 @@ async def netstorge_async(args, parser):
149151
lca_block_height = blockchain_state["lca"].data.height
150152
older_block_height = lca_block_height - int(args.delta_block_height)
151153
print(
152-
f"LCA Block Height is {lca_block_height} - Comparing to {older_block_height}\n"
154+
f"LCA Block Height is {lca_block_height} - Calculating from block {older_block_height}\n"
153155
)
154156
older_block_header = await client.get_header_by_height(older_block_height)
155157
older_block_header_hash = str(older_block_header.get_hash())

0 commit comments

Comments
 (0)