Merge pull request #229 from majikandy/patch-2

Added TSTRAT
This commit is contained in:
iancoleman
2018-07-26 09:30:19 +10:00
committed by GitHub
3 changed files with 26 additions and 1 deletions

View File

@@ -1056,6 +1056,17 @@ bitcoinjs.bitcoin.networks.stratis = {
wif: 0xbf,
};
bitcoinjs.bitcoin.networks.stratistest = {
messagePrefix: '\x18Stratis Test Signed Message:\n',
bip32: {
public: 0x0488B21E,
private: 0x0488ADE4,
},
pubKeyHash: 0x41,
scriptHash: 0x7d,
wif: 0xbf,
};
bitcoinjs.bitcoin.networks.syscoin = {
messagePrefix: '\x18Syscoin Signed Message:\n',
bip32: {
@@ -1275,4 +1286,4 @@ bitcoinjs.bitcoin.networks.energi = {
pubKeyHash: 0x21,
scriptHash: 0x35,
wif: 0x6a,
};
};

View File

@@ -2300,6 +2300,13 @@
setHdCoin(105);
},
},
{
name: "TSTRAT - Stratis Testnet",
onSelect: function() {
network = bitcoinjs.bitcoin.networks.stratistest;
setHdCoin(105);
},
},
{
name: "SYS - Syscoin",
onSelect: function() {

View File

@@ -1096,6 +1096,13 @@ it('Allows selection of Stratis', function(done) {
};
testNetwork(done, params);
});
it('Allows selection of Stratis Test', function(done) {
var params = {
selectText: "TSTRAT - Stratis Testnet",
firstAddress: "TRLWm3dye4FRrDWouwYUSUZP96xb76mBE3",
};
testNetwork(done, params);
});
it('Allows selection of Syscoin', function(done) {
var params = {
selectText: "SYS - Syscoin",