@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
|
@@ -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,
|
|
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
|
@@ -16,7 +16,7 @@ const tests = [
|
|
|
16
16
|
},
|
|
17
17
|
description: 'No locktime id converted at zero locktime',
|
|
18
18
|
expected: {
|
|
19
|
-
id: '
|
|
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: '
|
|
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: '
|
|
37
|
+
id: '9eaa27ed0730c9de294d8539525af0f79379961c76e99362410850b122ed3bc9',
|
|
38
38
|
},
|
|
39
39
|
},
|
|
40
40
|
];
|