Compare commits
1 Commits
master
...
for-liteco
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4a74985272 |
@ -208,7 +208,7 @@ Input.prototype.getAddress = function getAddress(coin) {
|
|||||||
if (coin)
|
if (coin)
|
||||||
return coin.getAddress();
|
return coin.getAddress();
|
||||||
|
|
||||||
if (this.witness.items.length > 0)
|
if (this.witness.items.length > 0 && this.script.getSize() === 0)
|
||||||
return this.witness.getInputAddress();
|
return this.witness.getInputAddress();
|
||||||
|
|
||||||
return this.script.getInputAddress();
|
return this.script.getInputAddress();
|
||||||
|
|||||||
@ -2396,7 +2396,7 @@ Script.prototype.getMultisigInput = function getMultisigInput() {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
Script.prototype.isScripthashInput = function isScripthashInput() {
|
Script.prototype.isScripthashInput = function isScripthashInput() {
|
||||||
if (this.code.length < 2)
|
if (this.code.length < 1) // litecoin: change 2 to 1 to support embeded P2SH segwit tx
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Grab the raw redeem script.
|
// Grab the raw redeem script.
|
||||||
|
|||||||
47
test/witness-addresses-test.js
Normal file
47
test/witness-addresses-test.js
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user