fix(bch/getStats()): Adding names to service provider IDs

This commit is contained in:
Chris Troutner
2021-12-14 17:04:55 -08:00
parent 4f0e59ea61
commit 8857242570
4 changed files with 44 additions and 9 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ describe('#BCH E2E Tests', () => {
describe('#broadcast', () => {
it('should attempt to broadcast a transaction', async () => {
const body = {
hex: "'01000000013ba3edfd7a7b12b27ac72c3e67768f617fc81bc3888a51323a9fb8aa4b1e5e4a000000006a4730440220540986d1c58d6e76f8f05501c520c38ce55393d0ed7ed3c3a82c69af04221232022058ea43ed6c05fec0eccce749a63332ed4525460105346f11108b9c26df93cd72012103083dfc5a0254613941ddc91af39ff90cd711cdcde03a87b144b883b524660c39ffffffff01807c814a000000001976a914d7e7c4e0b70eaa67ceff9d2823d1bbb9f6df9a5188ac00000000'"
hex: '01000000013ba3edfd7a7b12b27ac72c3e67768f617fc81bc3888a51323a9fb8aa4b1e5e4a000000006a4730440220540986d1c58d6e76f8f05501c520c38ce55393d0ed7ed3c3a82c69af04221232022058ea43ed6c05fec0eccce749a63332ed4525460105346f11108b9c26df93cd72012103083dfc5a0254613941ddc91af39ff90cd711cdcde03a87b144b883b524660c39ffffffff01807c814a000000001976a914d7e7c4e0b70eaa67ceff9d2823d1bbb9f6df9a5188ac00000000'
}
const url = `${SERVER}/bch/broadcast`
+7 -1
View File
@@ -12,9 +12,15 @@ const ipfs = {
peer: {
sendPrivateMessage: () => {}
}
},
thisNode: {
peerData: []
}
},
peerInputHandler: () => {}
peerInputHandler: () => {},
state: {
serviceProviders: []
}
}
}