@alexbosworth/blockchain 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.2.1
4
+
5
+ - `noLocktimeIdForTransaction`: Fix id derivation to correct value
6
+
3
7
  ## 1.2.0
4
8
 
5
9
  - Add `idForBlock`: to calculate the block id given a hex encoded block
@@ -9,7 +9,7 @@ const byteCountInt32 = 4;
9
9
  const byteCountInt64 = 8;
10
10
  const byteCountMarkerFlag = 2;
11
11
  const byteCountNoMarkerFlag = 0;
12
- const decodeCompactInt = (b, o) => compactIntAsNumber({encoded: b, offset: o});
12
+ const decodeCompactInt = (b, o) => compactIntAsNumber({encoded: b, start: o});
13
13
  const defaultStartIndex = 0;
14
14
  const defaultWitnessCount = 0;
15
15
  const {isBuffer} = Buffer;
package/package.json CHANGED
@@ -22,5 +22,5 @@
22
22
  "scripts": {
23
23
  "test": "tap -j 2 --branches=1 --functions=1 --lines=1 --statements=1 -t 200 test/hashes/*.js test/numbers/*.js"
24
24
  },
25
- "version": "1.2.0"
25
+ "version": "1.2.1"
26
26
  }
@@ -16,7 +16,7 @@ const tests = [
16
16
  },
17
17
  description: 'No locktime id converted at zero locktime',
18
18
  expected: {
19
- id: 'e0041a8488ac2a4b80da897ce88e95b054988c6907c0a9355354133fe86b90ef',
19
+ id: '341db42c1d42e468b34f7c1f4b02af6932baa2760ad777c557e4e432a61535d0',
20
20
  },
21
21
  },
22
22
  {
@@ -25,7 +25,7 @@ const tests = [
25
25
  },
26
26
  description: 'No locktime id converted at non zero locktime',
27
27
  expected: {
28
- id: 'e0041a8488ac2a4b80da897ce88e95b054988c6907c0a9355354133fe86b90ef',
28
+ id: '341db42c1d42e468b34f7c1f4b02af6932baa2760ad777c557e4e432a61535d0',
29
29
  },
30
30
  },
31
31
  {
@@ -34,7 +34,7 @@ const tests = [
34
34
  },
35
35
  description: 'A non-segwit transaction is converted',
36
36
  expected: {
37
- id: '4bc29bad70d01853a167507beffd38a03db5da565de4645ac576824ce87c9934',
37
+ id: '9eaa27ed0730c9de294d8539525af0f79379961c76e99362410850b122ed3bc9',
38
38
  },
39
39
  },
40
40
  ];