Skip to content

Commit 48b8897

Browse files
committed
remove alert protocol message
closes #268 closes #204
1 parent 29d1a61 commit 48b8897

File tree

5 files changed

+1
-128
lines changed

5 files changed

+1
-128
lines changed

lib/bitcoin.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,6 @@ def self.network=(name)
671671
],
672672
genesis_hash: "000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f",
673673
proof_of_work_limit: 0x1d00ffff,
674-
alert_pubkeys: ["04fc9702847840aaf195de8442ebecedf5b095cdbb9bc716bda9110971b28a49e0ead8564ff0db22209e0374782c093bb899692d524e9d6a6956e7c5ecbcd68284"],
675674
known_nodes: [
676675
'relay.eligius.st',
677676
'mining.bitcoin.cz',
@@ -710,7 +709,6 @@ def self.network=(name)
710709
dns_seeds: [ ],
711710
genesis_hash: "00000007199508e34a9ff81e6ec0c477a4cccff2a4767a8eee39c11db367b008",
712711
proof_of_work_limit: 0x1d07fff8,
713-
alert_pubkeys: ["04302390343f91cc401d56d68b123028bf52e5fca1939df127f63c6467cdf9c8e2c14b61104cf817d0b780da337893ecc4aaff1309e536162dabbdb45200ca2b0a"],
714712
known_nodes: [],
715713
checkpoints: {},
716714
})
@@ -775,7 +773,6 @@ def self.network=(name)
775773
],
776774
genesis_hash: "12a765e31ffd4059bada1e25190f6e98c99d9714d334efa41a195a7e7e04bfe2",
777775
proof_of_work_limit: 0x1e0fffff,
778-
alert_pubkeys: ["040184710fa689ad5023690c80f3a49c8f13f8d45b8c857fbcbc8bc4a8e4d3eb4b10f4d4604fa08dce601aaf0f470216fe1b51850b4acf21b179c45070ac7b03a9"],
779776
known_nodes: [],
780777
checkpoints: {
781778
1 => "80ca095ed10b02e53d769eb6eaf92cd04e9e0759e5be4a8477b42911ba49c78f",
@@ -815,7 +812,6 @@ def self.network=(name)
815812
"dnsseed-testnet.thrasher.io",
816813
],
817814
genesis_hash: "4966625a4b2851d9fdee139e56211a0d88575f59ed816ff5e6a63deb4e3e29a0",
818-
alert_pubkeys: ["04302390343f91cc401d56d68b123028bf52e5fca1939df127f63c6467cdf9c8e2c14b61104cf817d0b780da337893ecc4aaff1309e536162dabbdb45200ca2b0a"],
819815
known_nodes: [],
820816
checkpoints: {
821817
546 => "bf434a4c665307f52a041ee40faa7bf56284c5f3b5d11bf6182aba537961f86c",
@@ -854,7 +850,6 @@ def self.network=(name)
854850
],
855851
genesis_hash: "1a91e3dace36e2be3bf030a65679fe821aa1d6ef92e7c9902eb318182c355691",
856852
proof_of_work_limit: 0x1e0fffff,
857-
alert_pubkeys: [],
858853
known_nodes: [
859854
"daemons.chain.so",
860855
"bootstrap.chain.so",
@@ -912,7 +907,6 @@ def self.network=(name)
912907
],
913908
genesis_hash: "bb0a78264637406b6360aad926284d544d7049f45189db5664f3c4d07350559e",
914909
proof_of_work_limit: 0x1e0fffff,
915-
alert_pubkeys: [],
916910
known_nodes: [
917911
"localhost",
918912
"testnets.chain.so",

lib/bitcoin/protocol.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ module Protocol
1919
autoload :Tx, 'bitcoin/protocol/tx'
2020
autoload :Block, 'bitcoin/protocol/block'
2121
autoload :Addr, 'bitcoin/protocol/address'
22-
autoload :Alert, 'bitcoin/protocol/alert'
2322
autoload :Reject, 'bitcoin/protocol/reject'
2423
autoload :Version, 'bitcoin/protocol/version'
2524
autoload :AuxPow, 'bitcoin/protocol/aux_pow'

lib/bitcoin/protocol/alert.rb

Lines changed: 0 additions & 51 deletions
This file was deleted.

lib/bitcoin/protocol/parser.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@ def parse_version(payload)
106106
end
107107

108108
def parse_alert(payload)
109-
return unless @h.respond_to?(:on_alert)
110-
@h.on_alert Bitcoin::Protocol::Alert.parse(payload)
109+
# nop (https://github.com/lian/bitcoin-ruby/issues/268)
111110
end
112111

113112
def parse_getblocks(payload)

spec/unit/bitcoin/protocol/alert_spec.rb

Lines changed: 0 additions & 68 deletions
This file was deleted.

0 commit comments

Comments
 (0)