Skip to content

Commit b2f803c

Browse files
committed
Move non-consensus-critical constants out of bitcoin.core
Also deleted MIN_PROTO_VERSION and BIP0031_VERSION as the python-bitcoinlib codebase doesn't even use them.
1 parent a260407 commit b2f803c

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

bitcoin/core/__init__.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,6 @@
2828
MAX_BLOCK_SIZE = 1000000
2929
MAX_BLOCK_SIGOPS = MAX_BLOCK_SIZE/50
3030

31-
BIP0031_VERSION = 60000
32-
PROTO_VERSION = 60002
33-
MIN_PROTO_VERSION = 209
34-
35-
CADDR_TIME_VERSION = 31402
36-
3731
def MoneyRange(nValue):
3832
return 0 <= nValue <= MAX_MONEY
3933

bitcoin/net.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
from .core import PROTO_VERSION, CADDR_TIME_VERSION
1919
from .core.serialize import *
2020

21+
PROTO_VERSION = 60002
22+
CADDR_TIME_VERSION = 31402
2123

2224
class CAddress(Serializable):
2325
def __init__(self, protover=PROTO_VERSION):

0 commit comments

Comments
 (0)