Этот вопрос кажется не по теме, потому что речь идет о использовании баз данных, и не относится к биткоин. @JulesLamur что ты имеешь в виду? Затворный? Этот небольшой раздел об этом в ответ Я просто понял, что это может быть проблемой, когда сложность меняется. Новая трудность может сделать это на самом деле сложнее в шахте сверху новый блок, чем пытаться сместить его. Считают, что BTC2 клиенту следующие правила: (1) всегда скопировать основную ветку (БТД), блок на блоке (включая последние), но добавить свой собственный компания для каждого блока; (2) не позволяют тратить от лишних BTC2 фонда (т. е. держать эти монеты заблокирована). Тогда это может продолжаться вечно? Эффективно BTC2 работает на основной ветке, но и добыча собственного филиала на стороне. Есть эффективное решение для нескольких клиентов за тот же Нат? Может Сатоши клиент пиринговой рекламируют себя с другой порт, если это требуется?

Я пытаюсь сделать простой одноранговое соединение с помощью Python.

Если я правильно понимаю, общение начинается, отправив "версии" пакета к узлу приема. Узел затем отправляет обратно "verack" пакета, после чего может начаться запроса данных/толкает ВМС США.

Кен Shirriff блог имеет неоценимо важное значение в получении мной до сих пор, но я не могу получить его код, примеры работы, возможно, потому, что они встречались?

В частности, при работе:

https://github.com/shirriff/bitcoin-code/blob/master/minimalPeerConnection.py

сокет сразу закрывается. Я не получить обратно "verack", и я не могу заталкивают мой Техас. Обратите внимание, что Я заменил его жестко IP с текущей операционной узел (124.248.237.178:8333).

Я пытался построить более "актуальную" версию пакета (70002) ссылаясь на эти документы , но столкнуться с той же проблемой:

импорт структуры
импорт гнездо
время импорта 
импорт hashlib
импорт binascii

магия = 0xd9b4bef9

деф makeMessage(магия,команда,грузоподъемность):
 контрольная сумма = hashlib.и SHA256(hashlib.и SHA256(грузоподъемность).дайджест()).дайджест()[0:4]
 возвращение структуры.пакет('L12sL4s,магия,команда,лен(полезная нагрузка),контрольная сумма).кодирование("порчу")+полезная нагрузка
деф makeVersionPayload():
 версия = 70002
 услуг = 1
 типа timestamp = инт(время.время())

 adr_u = "::порядок:127.0.0.1"
 services_u = 1
 port_u = 8333

 adr_me = "::порядок:127.0.0.1"
 services_me = 1
 port_me = 8333

 извращенец = 0

 user_agent_bytes = 0
 start_height = 0
 реле = 0

#https://bitcoin.org/en/developer-reference#version
 payload_hex = "";
 payload_hex += структура.пакет("<л",версия).кодирование("порчу")
 payload_hex += структура.пакет("<М",услуг).кодирование("порчу")
 payload_hex += структура.пакет("<г",отметка).кодирование("порчу")
 payload_hex += структура.пакет("<М",services_u).кодирование("порчу")
 payload_hex += структура.пакет(">16С",adr_u).кодирование("порчу")
 payload_hex += структура.пакет(">ч",port_u).кодирование("порчу")
 payload_hex += структура.пакет("<М",services_me).кодирование("порчу")
 payload_hex += структура.пакет(">16С",adr_me).кодирование("порчу")
 payload_hex += структура.пакет(">ч",port_me).кодирование("порчу")
 payload_hex += структура.пакет("<М",нонсен).кодирование("порчу")
 payload_hex += структура.пакет("<Б",user_agent_bytes).кодирование("порчу")
 payload_hex += структура.пакет("<л",start_height).кодирование("порчу")
 payload_hex += структура.пакет("<Б",реле).кодирование("порчу")
 возвращение payload_hex

ИС = сокет.функция gethostbyname("124.248.237.178")
порт = 8333
носок = сокет.гнезда(сокета.Равен af_inet, гнездо.Тип)
печати ", подключенный к узлу..."
носок.подключить((IP,порт))

hex_msg = makeMessage(магия,"версия",makeVersionPayload())
печати "отправка версию пакета"
носок.отправить(binascii.unhexlify(hex_msg))

пока 1:
 МСГ = носок.вызовов recv(4096)
 если не МСГ:
 печать "отключен"
выход()
другое:
 #ожидал verack?
 печать "ответ: ",МСГ

Может кто-нибудь мне точку в правильном направлении?

$200 cialis coupon 10 mg tadalafil generic 5 mg cialis over the counter at walmart best price for tadalafil 20 mg buy cialis buy cialis generic tadalafil buy cialis online buy cialis online without script buy tadalafil buy tadalafil online canadian cialis online pharmacy canadian pharmacy cialis cheap cialis cheap cialis generic cialis cialis 20 mg best price cialis 20mg cialis 30 day sample cialis 30 day trial coupon cialis and alcohol cialis before and after cialis canada cialis canada pharmacy online cialis cost cialis coupon cialis coupons cialis coupons printable cialis dosage cialis dosage information cialis for daily use cialis for sale cialis free trial cialis free trial voucher for cialis cialis generic cialis generic release date cialis generic tadalafil cialis lowest price cialis online cialis online pharmacy cialis over the counter cialis over the counter at walmart cialis patent expiration date extended cialis picture testimonials cialis pills cialis price cialis prices cialis reviews cialis side effects cialis tadalafil cialis tadalafil 20 mg cialis vs viagra cialis vs viagra which is better cialis without a doctor's prescription cialis without doctor prescription cost of cialis cost of tadalafil generic at walgreens coupon for cialis by manufacturer does cialis lower blood pressure generic cialis generic cialis at walmart generic cialis canada generic cialis canada pharmacy generic cialis from india generic cialis tadalafil generic tadalafil generic tadalafil 20 mg is there a generic for cialis online cialis purchasing cialis on the internet side effects for cialis side effects for tadalafil side effects of cialis tadalafil tadalafil 20 mg tadalafil 20 mg canadian drug stores tadalafil 20mg tadalafil 20mg lowest price tadalafil 5 mg tadalafil 5mg tadalafil cost at walmart tadalafil dosage tadalafil generic tadalafil generic at walgreens tadalafil generic best prices tadalafil online tadalafil price tadalafil side effects tadalafil tablets tadalafil without a doctor's prescription viagra vs cialis viagra vs cialis vs levitra warnings for tadalafil $200 cialis coupon 10 mg tadalafil generic 5 mg cialis over the counter at walmart best price for tadalafil 20 mg buy cialis buy cialis generic tadalafil buy cialis online buy cialis online without script buy tadalafil buy tadalafil online canadian cialis online pharmacy canadian pharmacy cialis cheap cialis cheap cialis generic cialis cialis 20 mg best price cialis 20mg cialis 30 day sample cialis 30 day trial coupon cialis and alcohol cialis before and after cialis canada cialis canada pharmacy online cialis cost cialis coupon cialis coupons cialis coupons printable cialis dosage cialis dosage information cialis for daily use cialis for sale cialis free trial cialis free trial voucher for cialis cialis generic cialis generic release date cialis generic tadalafil cialis lowest price cialis online cialis online pharmacy cialis over the counter cialis over the counter at walmart cialis patent expiration date extended cialis picture testimonials cialis pills cialis price cialis prices cialis reviews cialis side effects cialis tadalafil cialis tadalafil 20 mg cialis vs viagra cialis vs viagra which is better cialis without a doctor's prescription cialis without doctor prescription cost of cialis cost of tadalafil generic at walgreens coupon for cialis by manufacturer does cialis lower blood pressure generic cialis generic cialis at walmart generic cialis canada generic cialis canada pharmacy generic cialis from india generic cialis tadalafil generic tadalafil generic tadalafil 20 mg is there a generic for cialis online cialis purchasing cialis on the internet side effects for cialis side effects for tadalafil side effects of cialis tadalafil tadalafil 20 mg tadalafil 20 mg canadian drug stores tadalafil 20mg tadalafil 20mg lowest price tadalafil 5 mg tadalafil 5mg tadalafil cost at walmart tadalafil dosage tadalafil generic tadalafil generic at walgreens tadalafil generic best prices tadalafil online tadalafil price tadalafil side effects tadalafil tablets tadalafil without a doctor's prescription viagra vs cialis viagra vs cialis vs levitra warnings for tadalafil blue chew viagra scam buy viagra buy viagra online buy viagra online canada pharmacy buy viagra online without script canada pharmacy viagra generic canadian pharcharmy online viagra canadian viagra canadian viagra without a doctor prescription cheap viagra cialis vs viagra cost of viagra female viagra female viagra pills free viagra free viagra samples generic viagra generic viagra 100mg generic viagra available generic viagra canada price generic viagra online pharmacy generic viagra sildenafil citrate generic viagra without a doctor prescription herbal viagra how does viagra work how long does viagra last how much does viagra cost how to take viagra for maximum effect i took viagra mom levitra vs viagra mom gives son viagra natural viagra natural viagra alternatives that work natural viagra substitute nizagara 100 mg vs viagra online viagra online viagra without subscription over the counter viagra real life viagra demonstration revatio vs viagra side effects of viagra sildenafil sildenafil 100mg sildenafil 20 mg sildenafil 20 mg tablet sildenafil 20 mg tablet vs viagra sildenafil citrate sildenafil citrate 100mg sildenafil citrate 20 mg sildenafil coupons sildenafil dosage sildenafil dosage recommendations sildenafil generic sildenafil side effects sophia viagra sophia viagra bikini sophia viagra hot stendra vs viagra stepmom gives son viagra viagra viagra 100mg viagra before after photo actual viagra boner viagra canada online pharmacy viagra coupon viagra coupons viagra coupons from pfizer viagra dosage viagra dosage recommendations viagra erection viagra erection after ejaculation viagra for men viagra for sale viagra for sale on amazon viagra for women viagra generic viagra generic availability viagra generic release date viagra in action viagra on line viagra online viagra online canada pharmacy viagra online pharmacy viagra patent expiration viagra pill viagra pills viagra porn viagra prank viagra prices viagra samples viagra sex viagra side effects viagra substitute viagra vs cialis viagra without a doctor prescription viagra without doctor prescription what is viagra when will generic viagra be available blue chew viagra scam buy viagra buy viagra online buy viagra online canada pharmacy buy viagra online without script canada pharmacy viagra generic canadian pharcharmy online viagra canadian viagra canadian viagra without a doctor prescription cheap viagra cialis vs viagra cost of viagra female viagra female viagra pills free viagra free viagra samples generic viagra generic viagra 100mg generic viagra available generic viagra canada price generic viagra online pharmacy generic viagra sildenafil citrate generic viagra without a doctor prescription herbal viagra how does viagra work how long does viagra last how much does viagra cost how to take viagra for maximum effect i took viagra mom levitra vs viagra mom gives son viagra natural viagra natural viagra alternatives that work natural viagra substitute nizagara 100 mg vs viagra online viagra online viagra without subscription over the counter viagra real life viagra demonstration revatio vs viagra side effects of viagra sildenafil sildenafil 100mg sildenafil 20 mg sildenafil 20 mg tablet sildenafil 20 mg tablet vs viagra sildenafil citrate sildenafil citrate 100mg sildenafil citrate 20 mg sildenafil coupons sildenafil dosage sildenafil dosage recommendations sildenafil generic sildenafil side effects sophia viagra sophia viagra bikini sophia viagra hot stendra vs viagra stepmom gives son viagra viagra viagra 100mg viagra before after photo actual viagra boner viagra canada online pharmacy viagra coupon viagra coupons viagra coupons from pfizer viagra dosage viagra dosage recommendations viagra erection viagra erection after ejaculation viagra for men viagra for sale viagra for sale on amazon viagra for women viagra generic viagra generic availability viagra generic release date viagra in action viagra on line viagra online viagra online canada pharmacy viagra online pharmacy viagra patent expiration viagra pill viagra pills viagra porn viagra prank viagra prices viagra samples viagra sex viagra side effects viagra substitute viagra vs cialis viagra without a doctor prescription viagra without doctor prescription what is viagra when will generic viagra be available $200 cialis coupon 10 mg tadalafil generic 5 mg cialis over the counter at walmart best price for tadalafil 20 mg buy cialis buy cialis generic tadalafil buy cialis online buy cialis online without script buy tadalafil buy tadalafil online canadian cialis online pharmacy canadian pharmacy cialis cheap cialis cheap cialis generic cialis cialis 20 mg best price cialis 20mg cialis 30 day sample cialis 30 day trial coupon cialis and alcohol cialis before and after cialis canada cialis canada pharmacy online cialis cost cialis coupon cialis coupons cialis coupons printable cialis dosage cialis dosage information cialis for daily use cialis for sale cialis free trial cialis free trial voucher for cialis cialis generic cialis generic release date cialis generic tadalafil cialis lowest price cialis online cialis online pharmacy cialis over the counter cialis over the counter at walmart cialis patent expiration date extended cialis picture testimonials cialis pills cialis price cialis prices cialis reviews cialis side effects cialis tadalafil cialis tadalafil 20 mg cialis vs viagra cialis vs viagra which is better cialis without a doctor's prescription cialis without doctor prescription cost of cialis cost of tadalafil generic at walgreens coupon for cialis by manufacturer does cialis lower blood pressure generic cialis generic cialis at walmart generic cialis canada generic cialis canada pharmacy generic cialis from india generic cialis tadalafil generic tadalafil generic tadalafil 20 mg is there a generic for cialis online cialis purchasing cialis on the internet side effects for cialis side effects for tadalafil side effects of cialis tadalafil tadalafil 20 mg tadalafil 20 mg canadian drug stores tadalafil 20mg tadalafil 20mg lowest price tadalafil 5 mg tadalafil 5mg tadalafil cost at walmart tadalafil dosage tadalafil generic tadalafil generic at walgreens tadalafil generic best prices tadalafil online tadalafil price tadalafil side effects tadalafil tablets tadalafil without a doctor's prescription viagra vs cialis viagra vs cialis vs levitra warnings for tadalafil