Add a convenience method to determine the network a message is from
This commit is contained in:
@@ -300,6 +300,7 @@ describe ::BtcWireProto do
|
||||
m = Message::read(GOOD_VERSION_DATA)
|
||||
|
||||
m.magic.should == BtcWireProto::NETWORKS[:main]
|
||||
m.network_name.should == :main
|
||||
m.command.should == "version\x00\x00\x00\x00\x00"
|
||||
m.payload_len.should == 85
|
||||
m.has_parameter?(:checksum).should be_false
|
||||
|
Reference in New Issue
Block a user