lightning-onion 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c676e3e173135c4fb63cc8cf9d42936342f0a144
4
- data.tar.gz: b2600dd7b5ee1215d1037aca1ee05734946dd57f
3
+ metadata.gz: f532c0ead98e2302135ebe51d2546a63bd1d46bd
4
+ data.tar.gz: cb6692857777b2ba41818a49f4c8ddc3e6fa1f51
5
5
  SHA512:
6
- metadata.gz: d23269a725290926473ddaa35f816a006f29ba1048a724e634f81efe39d8e856f3c998b967e7284cf165db2a8b4aa1849a60568c5a6c7b0f286341bc36b0b265
7
- data.tar.gz: ef568c4316a57737a824c9f95a7aa797d8d87c338f4899e045244b08bbb9627c8f5137e19839708fe90cca1530e2ccd7147ad95844899a5126bb511e96fb2bce
6
+ metadata.gz: '07209896697cdfe318e2f24284398944de874a273522f482d13d0ff4669b9db756434fce262d1410d7c5b70ab86b19ec94fcfd19d6e6c47130a7da8815be266d'
7
+ data.tar.gz: 3fa984539c52051aab37367a4a5f22ec3768ff578afe832fc3202526f3fc6e47ae12654d2e32b8ac0dcd8fea9880f5890329e1e265ec0f793004cbbe9d79d868
@@ -5,11 +5,11 @@ module Lightning
5
5
  module FailureMessages
6
6
  module FinalIncorrectHtlcAmount
7
7
  def to_payload
8
- [type_code].pack('n')
8
+ [type_code, incoming_htlc_amt].pack('nq>')
9
9
  end
10
10
 
11
11
  def self.load(payload)
12
- new(*payload.unpack('n'))
12
+ new(*payload.unpack('nq>'))
13
13
  end
14
14
  end
15
15
  end
@@ -29,6 +29,10 @@ module Lightning
29
29
  payload << hmac.htb
30
30
  payload
31
31
  end
32
+
33
+ def last?
34
+ hmac == "\x00" * 32
35
+ end
32
36
  end
33
37
  end
34
38
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Lightning
4
4
  module Onion
5
- VERSION = '0.2.4'
5
+ VERSION = '0.2.5'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lightning-onion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hajime Yamaguchi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-06-30 00:00:00.000000000 Z
11
+ date: 2018-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: algebrick