Skip to content

Commit 0806dce

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. [ yapified by gitreformat (github/ghtdak) on Mon Nov 30 21:11:11 2015 ]
1 parent 007c607 commit 0806dce

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-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

3832
def MoneyRange(nValue):
3933
return 0 <= nValue <= MAX_MONEY

bitcoin/net.py

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

21+
PROTO_VERSION = 60002
22+
CADDR_TIME_VERSION = 31402
23+
2124

2225
class CAddress(Serializable):
2326

0 commit comments

Comments
 (0)