Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node http endpoints and handlers #168

Open
wants to merge 29 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
ed1b563
Implement sendopen http interface for node. Requires updated hs-clien…
wi-ski May 4, 2019
8a9fe95
Implement grindname, getproof, and getresource
wi-ski May 5, 2019
3fcd483
Use paired hs-client
wi-ski May 5, 2019
ad782fe
Undo need for update hs-client
wi-ski May 14, 2019
1d20d2a
Remaining getInfo calls
wi-ski May 14, 2019
b9b9396
this correction
wi-ski May 14, 2019
0f98759
Update test/node-http-test.js
wi-ski May 14, 2019
5db3f58
Update test/node-http-test.js
wi-ski May 14, 2019
14a5c31
Surface level test tweaks, next try sleep again
wi-ski May 15, 2019
dc5e518
Test implementation using sleep attempt
wi-ski May 15, 2019
0722801
Kill before each
wi-ski May 15, 2019
ffb2fc1
Extend timeout?
wi-ski May 15, 2019
0fdce37
Extend timeout again.
wi-ski May 15, 2019
6baaa6d
Event listening
wi-ski May 15, 2019
b035103
First pass at mining fewer blocks
wi-ski May 15, 2019
721f8fd
Remove sleep
wi-ski May 15, 2019
593a151
Mine even fewer blocks
wi-ski May 15, 2019
5fd20d5
Bring test timeout back down to reflect time seen in CI
wi-ski May 15, 2019
bccab33
PR tweaks for Tynes. Use getJSON util method, variable renaming
wi-ski Jun 7, 2019
32d8557
Try CI again
wi-ski Jun 8, 2019
c0bec63
Fix missing ref
wi-ski Jun 27, 2019
9050228
Fix for var shadowing
wi-ski Jun 27, 2019
3b8a8a4
Update routes, use more determnistic mining setup, implement and test…
wi-ski Jun 30, 2019
4dbf7f7
Update test descriptions for TYPE_DEADEND
wi-ski Jun 30, 2019
41f5088
Tighten test line spacing up
wi-ski Jun 30, 2019
d4015a5
Lint fix
wi-ski Jul 1, 2019
4c6afb4
Return null when DB doesnt know about name
wi-ski Jul 1, 2019
231e30e
Restore empty line
wi-ski Jul 1, 2019
177a78e
Dedup proof response vals, shorten line length
wi-ski Jul 24, 2019
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
Prev Previous commit
Next Next commit
Fix for var shadowing
wi-ski committed Jun 27, 2019
commit 9050228f5610747ab3bbcca1b4f5d2072d6f4279
3 changes: 1 addition & 2 deletions test/node-http-test.js
Original file line number Diff line number Diff line change
@@ -47,10 +47,9 @@ describe('Node http', function() {
plugins: [require('../lib/wallet/plugin')]
});

const witnessedBlockHashes = {};
node.on('connect', (entry, block) => {
const blockHash = block.hash().toString('hex');
witnessedBlockHashes[blockHash] = blockHash;
witnessedBlocks[blockHash] = blockHash;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use a Set if you are using an object for membership testing? There is also a BufferSet in the buffer-map library

});

miner = node.miner;