Skip to content
This repository was archived by the owner on Jan 13, 2023. It is now read-only.

Commit 09784f0

Browse files
committed
Issue#53. Changed default min_weight_magnitude to 9 for testnet and 15 for mainnet.
1 parent e345de9 commit 09784f0

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,8 @@ dist/*
1919
# you can add these to your own "global" .gitignore file.
2020
# https://help.github.com/articles/ignoring-files/#create-a-global-gitignore
2121
#
22+
# Environments
23+
.env
24+
.venv
25+
env/
26+
venv/

iota/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def default_min_weight_magnitude(self):
133133
Returns the default ``min_weight_magnitude`` value to use for API
134134
requests.
135135
"""
136-
return 13 if self.testnet else 18
136+
return 9 if self.testnet else 15
137137

138138
def add_neighbors(self, uris):
139139
# type: (Iterable[Text]) -> dict
@@ -879,4 +879,4 @@ def send_trytes(self, trytes, depth, min_weight_magnitude=None):
879879
trytes = trytes,
880880
depth = depth,
881881
minWeightMagnitude = min_weight_magnitude,
882-
)
882+
)

0 commit comments

Comments
 (0)