Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
166 commits
Select commit Hold shift + click to select a range
5182c8a
Adding p2p worker for XRP that parses blocks for wallet related trans…
micahriggan Jan 15, 2020
98e12b3
Sync ripple transactions and blocks. Config option for syncing only w…
micahriggan Jan 20, 2020
56f04be
Adding wallet only sync and invoiceID and destinationTag
micahriggan Jan 20, 2020
b79c80e
Fixing test since it doesn't hit rpc anymore
micahriggan Jan 20, 2020
ab2c7c2
Only subtract 2000 if the height is greater than 2000
micahriggan Jan 23, 2020
088ca28
Fix issue of asking for a block that doesn't exist. Update chainBestB…
micahriggan Jan 23, 2020
e354e7f
Adding config option to set startHeight for ripple
micahriggan Jan 29, 2020
2a38d0c
Merge branch 'master' of github.com:bitpay/bitcore into walletLite
sbhatnagar30 Feb 27, 2020
2765032
Merge branch 'multiplexStorage' of github.com:sbhatnagar30/bitcore in…
sbhatnagar30 Mar 3, 2020
79c4b8f
Merge branch 'master' of github.com:bitpay/bitcore into walletLite
sbhatnagar30 Mar 3, 2020
329c2f0
adding wallet lite functionality
sbhatnagar30 Mar 6, 2020
35d99a5
more changes
sbhatnagar30 Mar 6, 2020
1b1e601
merge
sbhatnagar30 Mar 10, 2020
4c3c3b2
Merge branch 'master' of github.com:bitpay/bitcore into walletLite
sbhatnagar30 Mar 10, 2020
bbb9eac
Merge branch 'master' of github.com:bitpay/bitcore into walletLite
sbhatnagar30 Mar 11, 2020
3a9b558
Merge branch 'master' of github.com:bitpay/bitcore into walletLite
sbhatnagar30 Mar 12, 2020
379b1d5
Merge branch 'master' of github.com:bitpay/bitcore into walletLite
sbhatnagar30 Mar 17, 2020
eccdcd9
intial code for schnorr bws/bwc integration
Mar 18, 2020
ad49a6a
wallet storage script and getting rid of extra stream utils
sbhatnagar30 Mar 18, 2020
c9aa479
wallet lite flag
sbhatnagar30 Mar 18, 2020
0f6b82c
added way to derive addresses for lite wallet and fixing bugs
sbhatnagar30 Mar 19, 2020
88139f2
Merge branch 'master' of https://github.com/bitpay/bitcore into bwc-b…
Mar 19, 2020
352a267
Merge Master
micahriggan Mar 19, 2020
c765691
Added walletSync function, that keeps all the wallets up to date
micahriggan Mar 19, 2020
c7d291b
Merge branch 'master' of github.com:bitpay/bitcore into feature/xrp-s…
micahriggan Mar 19, 2020
76f549c
Fixing compile issues after merge
micahriggan Mar 19, 2020
e94ddb0
add signing Method param; routes to bws
Mar 19, 2020
856f2d2
Fixing mintIndex and empty state bug
micahriggan Mar 20, 2020
eb9c658
Updated internal to take wallet transform as a parameter. Add ripple …
micahriggan Mar 20, 2020
ceda9a3
update btc chain service signing (preliminary)
Mar 20, 2020
9d1cebb
Merge branch 'master' of github.com:bitpay/bitcore into walletLite
sbhatnagar30 Mar 23, 2020
caf92f9
formatting
micahriggan Mar 23, 2020
cae44d1
specify gasLimit and gasPrice
sbhatnagar30 Mar 23, 2020
7dc1ef4
add optional method to addSignaturesToBitcoreTx, override addSignatur…
Mar 23, 2020
0ca21a9
update tests for bws
Mar 26, 2020
e3779f6
Merge branch 'master' of github.com:bitpay/bitcore into feature/xrp-s…
micahriggan Mar 26, 2020
f81ed0a
remove signingMethod param from getBitcoreTx(); update bws bch signin…
Mar 26, 2020
9842ab1
changing flags and nextAddressPairLite call
sbhatnagar30 Mar 26, 2020
3063160
Start syncing XRP blocks after wallet sync finishes
micahriggan Mar 27, 2020
4f4adbf
remove old script tests; bch public key hash inputs can now include s…
Mar 27, 2020
b9fe611
Merge branch 'master' of https://github.com/bitpay/bitcore into bwc-b…
Mar 27, 2020
f0999f9
Spend a multisig address built from non-sorted public keys
takuto-h Mar 28, 2020
d022369
Merge pull request #2758 from sbhatnagar30/walletLite
matiu Mar 30, 2020
d0bdbda
Merge pull request #2761 from sbhatnagar30/fixGasLimit
matiu Mar 30, 2020
214162e
Merge pull request #2764 from takuto-h/bugfix/multisig-no-sorting
matiu Apr 2, 2020
c3d537c
Fixing index on lastTx search
micahriggan Apr 3, 2020
7159eec
Improve the mempool pruning to invalidate a chain of invalid tx outputs
micahriggan Apr 3, 2020
b77bc6c
use Opcode.smallInt for checkbits values 1-16
Apr 3, 2020
f4431f7
Merge branch 'master' of https://github.com/bitpay/bitcore into bwc-b…
Apr 3, 2020
a5dd10d
fix to handle error controls for payproV2
rastajpa Apr 3, 2020
7c6cb47
support BIP68
matiu Apr 3, 2020
c059235
adds tests and fixes relative parameters
matiu Apr 4, 2020
65e6036
fix v2 tests
matiu Apr 4, 2020
48e5e19
port changes to BCH
matiu Apr 4, 2020
a2afbe7
support legacy clients
matiu Apr 4, 2020
7face4c
rm logs
matiu Apr 4, 2020
76281f1
rm dups returns
matiu Apr 4, 2020
9939220
add tests for BCH
matiu Apr 5, 2020
6334abc
Merge pull request #2779 from matiu/feat/bip68
matiu Apr 6, 2020
3a1b156
default error added
rastajpa Apr 6, 2020
1ffc9f2
update txp version to 5
Apr 6, 2020
bc993cc
Test to make sure the full chain of txs have been marked invalid
micahriggan Apr 6, 2020
2f24bf4
Refactoring tests, add test for massive chain of txs
micahriggan Apr 6, 2020
23e1617
[FEAT] get transactions coins
gabrielbazan7 Apr 6, 2020
1e8b627
Add timeout since the massive chain test is a bit slow
micahriggan Apr 6, 2020
d6906e0
merge master
Apr 6, 2020
4114533
WIP set lock time in txproposal
matiu Apr 7, 2020
34a5257
Merge pull request #2778 from rastajpa/fix/payproV2-handle-errors
matiu Apr 7, 2020
32a1d7b
WIP2 set lock time in txproposal
matiu Apr 7, 2020
58622d5
get server with auth
gabrielbazan7 Apr 7, 2020
a5724a1
Prune before spends are saved
micahriggan Apr 7, 2020
da3466a
Fix: Import segwit
Gamboster Apr 7, 2020
29c4dd4
Merge branch 'master' of https://github.com/bitpay/bitcore into bwc-b…
Apr 7, 2020
b55c14d
disable BIP68 activation
matiu Apr 7, 2020
5e1a41d
Merge pull request #2781 from Gamboster/fix/importSegwit
matiu Apr 7, 2020
23001d9
Merge pull request #2773 from gabrielbazan7/feat/isRBF
matiu Apr 7, 2020
74f4271
Merge pull request #2782 from matiu/feat/set-lock-time
matiu Apr 8, 2020
5b7f142
merge master into bwc-bws-schnorr
Apr 8, 2020
8ed6f27
catch errors from incompatible peer and disconnect
nitsujlangston Apr 8, 2020
ced1f5e
Merge pull request #2785 from nitsujlangston/disconnectIncompatiblePeer
matiu Apr 9, 2020
5035a63
bump txp version, routes, tests to v4
Apr 8, 2020
a5bce13
revert txp to version 3
matiu Apr 9, 2020
6d563ac
Merge pull request #2786 from matiu/chore/disable-v4
matiu Apr 9, 2020
a0253ed
v8.17.0
matiu Apr 9, 2020
99a2cfd
add bwc tests for schnorr support
Apr 9, 2020
9f7be93
v8.17
matiu Apr 9, 2020
05379d5
add skip to doc test to ltc
matiu Apr 9, 2020
77a3aba
Working on tests for transform
micahriggan Apr 9, 2020
6a52b27
Filter out undefined, and make sure it's unique
micahriggan Apr 8, 2020
d19851d
Merge pull request #2787 from matiu/v8.17
matiu Apr 9, 2020
1ed56e2
[REF] check bwc version for join segwit wallet
gabrielbazan7 Apr 2, 2020
0d6b872
merge master into bwc-bws-schnorr
Apr 9, 2020
1f0f2cc
Merge pull request #2775 from gabrielbazan7/ref/join-segwit
matiu Apr 9, 2020
902126b
fix merge conflicts
Apr 9, 2020
31786eb
add getCoins to tx-details
Apr 9, 2020
3254c32
Adding constants for BUSD
micahriggan Apr 13, 2020
a90631d
Adding BUSD
micahriggan Apr 13, 2020
d6f7f4b
Adding BUSD to push notifications
micahriggan Apr 13, 2020
9471684
Updating constants to point to bwc constants
micahriggan Apr 13, 2020
abb6aab
Fixing some issues with casing
micahriggan Apr 14, 2020
d95da28
Merge pull request #2777 from micahriggan/feature/better-mempool-prune
matiu Apr 14, 2020
f16034f
Broken link in readme
RemcoMi Apr 14, 2020
c2d2a6b
catch errors from incompatible peer and disconnect
nitsujlangston Apr 15, 2020
cd87258
Merge pull request #2793 from nitsujlangston/bchDisconnectIncompatPeer
matiu Apr 15, 2020
9e7f882
v8.17.1
matiu Apr 15, 2020
1606555
update fixtures"s network magic and fix tests
matiu Apr 15, 2020
ada690a
Adding mempool age pruning, and stream refactor
micahriggan Apr 15, 2020
89febbe
Updating tests, removing dryrun
micahriggan Apr 15, 2020
49a32a0
Throw error if invalid is found
micahriggan Apr 16, 2020
346058b
Merge branch 'master' of github.com:bitpay/bitcore into feature/prune…
micahriggan Apr 16, 2020
b6074cd
Merge branch 'master' of github.com:bitpay/bitcore into feature/busd
micahriggan Apr 16, 2020
9de772c
Refactor constants to CWC
micahriggan Apr 16, 2020
037f6bf
Refactor BWC constants to CWC constants
micahriggan Apr 16, 2020
90f472c
Merge pull request #2795 from micahriggan/feature/prune-old-mempool
matiu Apr 16, 2020
605db19
Revert lock file
micahriggan Apr 16, 2020
f699cc0
Merge branch 'master' of github.com:bitpay/bitcore into feature/busd
micahriggan Apr 16, 2020
f1128cc
Updating package-locks
micahriggan Apr 16, 2020
7cd704c
Merge pull request #2790 from RemcoMi/patch-1
matiu Apr 16, 2020
20fa1a1
Removing export of constants
micahriggan Apr 16, 2020
ca102b8
Throwing if unsupported token
micahriggan Apr 16, 2020
22f584c
Merge pull request #2789 from micahriggan/feature/busd
matiu Apr 16, 2020
43baaa8
v8.18.0
matiu Apr 16, 2020
db6b900
v8.18
matiu Apr 16, 2020
be7ea9d
Merge pull request #2796 from matiu/v8.18
matiu Apr 16, 2020
8601b69
order address txs by recency
Apr 14, 2020
a9b773d
Merge branch 'master' of github.com:bitpay/bitcore into feature/xrp-s…
micahriggan Apr 17, 2020
45481fc
Revert eth p2p change
micahriggan Apr 17, 2020
fadb660
add signingMethod param to bitcore-lib transaction.sign(), input clas…
Apr 17, 2020
9ea7949
Taking data from live api and saving it as a fixture"
micahriggan Apr 17, 2020
dfe018d
Test for tag method
micahriggan Apr 17, 2020
822fdb5
Fix broken links
RemcoMi Apr 18, 2020
5be8a1f
Adding test to make sure all transactions get saved to the database a…
micahriggan Apr 20, 2020
048944d
add signingMethod to bitcore-lib, fix bws tests
Apr 20, 2020
d04ff41
Merge branch 'master' of https://github.com/bitpay/bitcore into bwc-b…
Apr 21, 2020
96ce8c8
Merge pull request #2791 from bsnowden3/feat/address-txs-timestamp
matiu Apr 21, 2020
5433911
Merge from Pull
Apr 22, 2020
db5998d
Merge from Pull
Apr 22, 2020
b636c85
Merge from Pull
Apr 22, 2020
8f30f72
fix bwc tests, key.sign()
Apr 21, 2020
31cf58f
Merge pull request #2797 from RemcoMi/patch-2
matiu Apr 22, 2020
4e5e5a5
throw error for signingMethod
Apr 22, 2020
dcc06af
add useBchSchnorr arg
Apr 22, 2020
670a6db
update bwc tests; add useBchSchnorr flag
Apr 22, 2020
ff1cdcb
Adding logging for txid to prune
micahriggan Apr 23, 2020
c301436
Logging for invalids too
micahriggan Apr 23, 2020
efde3b3
Logging should be stringified
micahriggan Apr 23, 2020
7831677
Switching to a yield based method, in case the array is too large
micahriggan Apr 24, 2020
179b4d7
Add log for count of outputs
micahriggan Apr 24, 2020
6c7bec2
Clear coins if they get above 100k
micahriggan Apr 24, 2020
8962d0e
Lowering the 100k to 10k
micahriggan Apr 24, 2020
29950af
Pruning can be run on specific chain/network, lower batch sizes
micahriggan Apr 24, 2020
ba5eb68
More logging
micahriggan Apr 24, 2020
d8a1612
Prevent cycles
micahriggan Apr 24, 2020
9c8e84c
Removing batching, since cycle detection was the solution
micahriggan Apr 24, 2020
ecc9974
Fixing logging bug
micahriggan Apr 24, 2020
e283f3b
Prevent cycles in method that gets all related outputs as an array
micahriggan Apr 25, 2020
7b24c9a
Merge pull request #2757 from bsnowden3/bwc-bws-schnorr
matiu Apr 27, 2020
7595257
v8.19.0
matiu Apr 16, 2020
1f7a9de
Merge pull request #2806 from matiu/v8.19git
matiu Apr 27, 2020
7409492
allow schnorr on BCH livenet on BWS (but keep it only on testnet on BWC)
matiu Apr 27, 2020
1d4eb18
Merge pull request #2804 from matiu/ref/bch-schnorr-activation
matiu Apr 28, 2020
b4c52ea
Adding some sanity check throws
micahriggan Apr 28, 2020
9756eed
Merge pull request #2802 from micahriggan/chore/more-prune-logging
matiu Apr 28, 2020
17ed745
Merge pull request #2686 from micahriggan/feature/xrp-sync-wallet-txs
matiu Apr 28, 2020
2544074
Merge Issues Fixed
Apr 29, 2020
a286053
Merge pull request #3 from m0rphtail/master
Apr 29, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions bitcore-test.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,16 @@
},
"XRP": {
"mainnet": {
"chainSource": "rpc",
"walletOnlySync": true,
"startHeight": 52563951,
"provider": {
"host": "s2.ripple.com",
"protocol": "wss",
"dataHost": "https://data.ripple.com"
}
},
"testnet": {
"chainSource": "rpc",
"provider": {
"host": "rippled",
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"lerna": "2.9.1",
"version": "8.16.2",
"version": "8.19.0",
"packages": [
"packages/*"
]
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "8.16.0",
"version": "8.18.0",
"prettier": {
"singleQuote": true,
"printWidth": 120
Expand Down
43 changes: 31 additions & 12 deletions packages/bitcore-build/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/bitcore-build/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bitcore-build",
"version": "8.16.2",
"version": "8.17.1",
"description": "A helper for common tasks to build bitcore modules'",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 3 additions & 1 deletion packages/bitcore-client/bin/wallet-create
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ program
.option('--path [path]', 'optional - Custom wallet storage path')
.option('--storageType [storageType]', 'optional - name of the database to use (Mongo or Level)')
.option('--phrase [phrase]', 'optional - Seed using existing backup phrase')
.option('--lite [lite]', 'optional - Create a wallet lite')
.parse(process.argv);

const main = async () => {
const { name, baseUrl, chain, network, path, phrase, storageType } = program;
const { name, baseUrl, chain, network, path, phrase, storageType, lite } = program;
try {
const password = await promptly.password('Wallet Password:');
await Wallet.create({
Expand All @@ -33,6 +34,7 @@ const main = async () => {
phrase,
password,
storageType,
lite
});
console.log('Wallet created!');
} catch (e) {
Expand Down
81 changes: 81 additions & 0 deletions packages/bitcore-client/bin/wallet-storage
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
#!/usr/bin/env node

'use strict';

const program = require('../ts_build/program');
const fs = require('fs');
const stream = require('stream');
const { Wallet } = require('../ts_build/wallet');
const { Storage } = require('../ts_build/storage');
const { StreamUtil } = require('../ts_build/stream-util');

program
.version(require('../package.json').version)
.option('--name [name]', 'REQUIRED - Wallet Name')
.option('--path [path]', 'optional - Custom wallet storage path')
.option('--storageType [storageType]', 'optional - name of the database to use (Mongo or Level)')
.option('--export [export]', 'export an existing wallet into an encrypted json')
.option('--import [import]', 'import an existing wallet from an encrypted json')
.option('--lite [lite]', 'optional - do a lite import or export')
.option('--file [file]', 'optional - specify custom file name for import')
.parse(process.argv);

const main = async () => {
const { name, path, lite, file } = program;
let { storageType } = program;
try {
const fileName = file || name + '.enc';
if (program.export) {
let wallet = await Wallet.loadWallet({ name, storageType, path });
if (lite) {
delete wallet.masterKey;
delete wallet.pubKey;
wallet.lite = true;
}
delete wallet.storage;
const readStream = new stream.Readable({ objectMode: true });
const writeStream = fs.createWriteStream(fileName);
readStream.push(wallet);
readStream.push(null);
readStream.pipe(StreamUtil.objectModeToJsonlBuffer()).pipe(writeStream);
console.log(`Exported wallet to ${name}.enc`);
}
if (program.import) {
const readStream = fs.createReadStream(fileName);
readStream.pipe(StreamUtil.jsonlBufferToObjectMode()).on('data', async (data) => {
if (!data) {
throw new Error('Could not read wallet file');
}
const wallet = new Wallet(data);
if (lite) {
delete wallet.masterKey;
delete wallet.pubKey;
wallet.lite = true;
}
if (name) {
wallet.name = name;
}
storageType = storageType ? storageType : 'Level';
let storage = new Storage({
path,
errorIfExists: false,
createIfMissing: true,
storageType
});
let alreadyExists;
try {
alreadyExists = await this.loadWallet({ storage, name, storageType });
} catch (err) {}
if (alreadyExists) {
throw new Error('Wallet already exists');
}
await storage.saveWallet({ wallet });
console.log(`Imported ${fileName} into ${storageType} as ${wallet.name}`);
});
}
} catch (e) {
console.error(e);
}
};

main();
2 changes: 1 addition & 1 deletion packages/bitcore-client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/bitcore-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"engines": {
"node": ">=8.0.0"
},
"version": "8.16.2",
"version": "8.19.0",
"author": "Justin Langston <nitsujlangston@gmail.com>",
"main": "./ts_build/index.js",
"types": "./ts_build/index.d.ts",
Expand All @@ -28,9 +28,9 @@
"JSONStream": "~1.3.1",
"async": "2.5.0",
"bcrypt": "3.0.8",
"bitcore-mnemonic": "^8.16.2",
"bitcore-mnemonic": "^8.17.1",
"commander": "2.15.1",
"crypto-wallet-core": "^8.16.2",
"crypto-wallet-core": "^8.19.0",
"elliptic": "6.4.1",
"level-js": "4.0.2",
"leveldown": "5.4.1",
Expand Down
Loading