v3.2.3 (#15)
* Udate DifficultyAdjustment BRANCH, fix header check * update electrum server list
This commit is contained in:
parent
184558db20
commit
e9655d3084
|
@ -831,7 +831,7 @@ class Network(util.DaemonThread):
|
|||
self.connection_down(interface.server)
|
||||
return
|
||||
|
||||
if len(hex_header) != HDR_LEN*2 and len(hex_header) != HDR_EH_192_7_LEN:
|
||||
if len(hex_header) != HDR_LEN*2 and len(hex_header) != HDR_EH_192_7_LEN*2:
|
||||
interface.print_error('wrong header length', interface.request)
|
||||
self.connection_down(interface.server)
|
||||
return
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"electrum.zclcore.com": {
|
||||
"electrum.zclassic-ce.org": {
|
||||
"pruning": "-",
|
||||
"s": "50002",
|
||||
"t": "50001",
|
||||
|
|
|
@ -47,6 +47,7 @@ OVERWINTER_BRANCH_ID = 0x5BA81B19
|
|||
SAPLING_VERSION_GROUP_ID = 0x892F2085
|
||||
SAPLING_BRANCH_ID = 0x76B809BB
|
||||
BUBBLES_BRANCH_ID = 0x821A451C
|
||||
DIFFADJ_BRANCH_ID = 0x930B540D
|
||||
|
||||
|
||||
class TransactionVersionError(Exception):
|
||||
|
@ -994,7 +995,7 @@ class Transaction:
|
|||
# add signature
|
||||
if self.overwintered:
|
||||
data = bfh(self.serialize_preimage(i))
|
||||
person = b'ZcashSigHash' + BUBBLES_BRANCH_ID.to_bytes(4, 'little')
|
||||
person = b'ZcashSigHash' + DIFFADJ_BRANCH_ID.to_bytes(4, 'little')
|
||||
pre_hash = blake2b(data, digest_size=32, person=person).digest()
|
||||
else:
|
||||
pre_hash = Hash(bfh(self.serialize_preimage(i)))
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
ELECTRUM_VERSION = 'v3.2.2' # version of the client package
|
||||
ELECTRUM_VERSION = 'v3.2.3' # version of the client package
|
||||
PROTOCOL_VERSION = '1.2' # protocol version requested
|
||||
|
||||
# The hash of the mnemonic seed must begin with this
|
||||
|
|
Loading…
Reference in New Issue