Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
a12e118
get filecoin cli working
mikeseese Jan 12, 2021
ff48ea7
make sure deterministic wallet option comes before seed
mikeseese Jan 12, 2021
fea496a
add option to change the rpc endpoint to support filecoin
mikeseese Jan 12, 2021
9e72df7
update to use cliDescription instead of shortDescription
mikeseese Jan 16, 2021
38b7fb4
set rpcEndpoint default in the definition instead of CLI args.ts
mikeseese Jan 18, 2021
285da13
set the default logger to console (as stated in docs)
mikeseese Jan 12, 2021
675924b
disable logging in filecoin tests
mikeseese Jan 15, 2021
ca9f793
apply changes from code review
mikeseese Jan 20, 2021
0d90311
change default description of rpcEndpoint
mikeseese Jan 20, 2021
9a9c635
fix blocktime after removing automine option
mikeseese Jan 21, 2021
978a3bf
disable logging in blockchain tests
mikeseese Jan 21, 2021
839e73e
fix blocktime to be seconds instead of milliseconds
mikeseese Jan 21, 2021
100ae19
add colors to tests! 🎨
mikeseese Jan 21, 2021
c4c59dd
fix non-filecoin tests affected by filecoin
mikeseese Jan 21, 2021
e2cabc5
reorganize provider option types
mikeseese Jan 19, 2021
9dd77d1
rename FilecoinApi's blockchain member to be consistent with ethereum
mikeseese Jan 12, 2021
17a7bfe
break up api tests
mikeseese Jan 21, 2021
81d09b0
update lotus schema
mikeseese Jan 21, 2021
79cd3ff
add test to check that we report invalid method for unimplemented met…
mikeseese Jan 21, 2021
10e4ed2
ensure Filecoin prefixed api calls are all valid api methods
mikeseese Jan 21, 2021
6612c96
add test for Ganache.MineTipset method
mikeseese Jan 21, 2021
a4e02f7
support peer dependency for @ganache/filecoin due to node@12 requirement
mikeseese Jan 23, 2021
8024912
remove requirement that packages need a tsconfig.json
mikeseese Jan 23, 2021
88afd64
revert link-ts-references and add do-nothing tsconfig to filecoin-types
mikeseese Jan 23, 2021
b4e148b
manually create symlink to @ganache/filecoin for peerDep
mikeseese Jan 25, 2021
6d94817
prevent failure of removing link if it doesnt exist
mikeseese Jan 25, 2021
b7f070c
add tsc script for @ganache/filecoin-types to be able to build
mikeseese Jan 26, 2021
bd8541e
make sure we don't swallow other errors
mikeseese Jan 27, 2021
41b30ad
change cli ETH label to FIL
mikeseese Jan 27, 2021
076eab9
update filecoin scripts to use lerna ts scripts
mikeseese Jan 29, 2021
df3452a
rename tsconfig file
mikeseese Feb 4, 2021
701ec67
add filecoin declarations script to root and add cleaning command
mikeseese Feb 4, 2021
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 blocktime to be seconds instead of milliseconds
  • Loading branch information
mikeseese committed Jan 29, 2021
commit 839e73e9c3fe10e38201b94d4dcef7043c923185
2 changes: 1 addition & 1 deletion src/chains/filecoin/filecoin/src/blockchain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default class Blockchain extends Emittery.Typed<

this.miningTimeout = setInterval(
intervalMine,
this.options.miner.blockTime
this.options.miner.blockTime * 1000
);

utils.unref(this.miningTimeout);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe("Blockchain", () => {
let blockchain = new Blockchain(
FilecoinOptionsConfig.normalize({
miner: {
blockTime: 100
blockTime: 1
},
logging: {
logger: {
Expand All @@ -71,13 +71,12 @@ describe("Blockchain", () => {
try {
await blockchain.waitForReady();

// After 1 second, we should have well over 4 blocks
// I'm not checking for exactly 5 to dodge race conditions
await new Promise(resolve => setTimeout(resolve, 1000));
// After 3.5 seconds, we should have 3 blocks
await new Promise(resolve => setTimeout(resolve, 3500));

let latest: Tipset = blockchain.latestTipset();

assert(latest.height >= 4);
assert.strictEqual(latest.height, 3);
} finally {
blockchain.stop();
}
Expand Down