Elliot Glaysher
73dae3e805
Revive and hook up the option.
2019-10-17 17:02:33 -07:00
Elliot Glaysher
9ec9426b8a
Implement -N, dry-run mode.
...
When -N is enabled, no sockets are bound and no events get persisted
to the datastore. We also pass the dry run flag to the serf, who
should not snapshot.
(For redundancy, we should probably also make king not send the save
snapshot commands, but I tested locally that the worker process
doesn't save.)
2019-10-17 16:10:53 -07:00
Elliot Glaysher
f038e60794
Implement -L and -x
2019-10-17 15:32:06 -07:00
Elliot Glaysher
b0ed770cc8
Build (HasPierConfig env) and use it for pier path and network state
2019-10-17 14:06:25 -07:00
Elliot Glaysher
29a471c3df
Default to the bootstrap pill of the current urbit version.
...
Also set the version number of king in lockstep with vere.
2019-10-16 16:03:02 -07:00
Elliot Glaysher
e9063f926b
Implement -u flag for loading pills from a url.
2019-10-16 13:43:47 -07:00
Elliot Glaysher
31226bc9c0
Fix boot sequence for brass pills.
2019-10-16 13:38:46 -07:00
Elliot Glaysher
9d7746948b
Print messages about looking up galaxy IPs.
2019-10-11 14:05:25 -07:00
Elliot Glaysher
0633010a92
Implement quickcheck on path utilities and fix a bug.
2019-10-10 16:24:12 -07:00
Elliot Glaysher
c28f2693b5
Small cleanups to Dawn.
2019-10-10 15:01:50 -07:00
Elliot Glaysher
f2fb404496
Revive a few of the cue/jam property tests.
2019-10-10 14:20:26 -07:00
Elliot Glaysher
a14b6e06d3
Boot from mined comets in king.
...
This makes the comet mining code actually work. You can now run
king with `new --comet` to mine a new comet and get it on the
network. Mining appears to be significantly faster; I've had to
wait up to 20 minutes with vere, but I've never needed to wait more
than 30 seconds with king.
2019-10-10 13:45:01 -07:00
Elliot Glaysher
006ee022b7
LGTM from Ben.
2019-10-09 16:58:54 -07:00
Elliot Glaysher
1cca039b6f
First part of the code review with Ben.
2019-10-09 14:58:27 -07:00
Elliot Glaysher
a511b3aba8
Stubbed comet mining
2019-10-09 13:39:11 -07:00
Elliot Glaysher
e1ef550ffc
Further fake mode cleanups.
2019-10-09 10:25:11 -07:00
Elliot Glaysher
2ccf931cb8
Remove tracing code.
2019-10-08 16:53:07 -07:00
Elliot Glaysher
72ef261ebe
Binds to INADDR_ANY on real ships.
...
This at least gets us to "~zod is ok" and "~zod is your neighbor",
along with the landscape welcome message from ~marzod. Persistent
connectivity has problems though.
2019-10-08 16:32:47 -07:00
Elliot Glaysher
26046b63ef
Thread isFake bit to Ames and condition how we send messages on it.
2019-10-08 16:18:52 -07:00
Elliot Glaysher
8cd9c690db
Use the same socket for sending and receiving.
2019-10-08 15:56:32 -07:00
Elliot Glaysher
872d4b1c76
WIP: Compiles, but appears to have broken fakezod/fakenec.
2019-10-08 15:01:16 -07:00
Elliot Glaysher
4a0c2f0393
Skeleton implementation of Ames with galaxy lookup.
...
Needs to be moved to RIO so that I can get logging data about this.
2019-10-08 13:04:21 -07:00
Elliot Glaysher
fcdc5904e8
General cleanup.
2019-10-04 13:47:05 -07:00
Elliot Glaysher
bf8a00d8dc
Retrieve entire sponsorship chains.
...
This retrieves the point data for not just the immediate sponsor,
but for the whole sponsorship chain. (For a moon: [galaxy star
planet], for a planet: [galaxy star], and so on.)
2019-10-04 11:54:25 -07:00
Elliot Glaysher
93e3a2e0e8
Start working through %dawn differences on a comet.
...
I booted a comet with vere, had it dump its keyfile, and then went
through `stack run king -- new` with that keyfile. Things were
fairly close, but there's still more to do here.
This fixes the turf uniqueness issue and makes us do less work for
things that vere didn't bother making real, like ownership
information.
2019-10-03 16:39:16 -07:00
Elliot Glaysher
6235f87579
Can now print a vere %dawn event in king's event browser.
2019-10-03 15:51:34 -07:00
Elliot Glaysher
b95c354ba3
Hook up the lite mode flag.
2019-10-03 15:41:19 -07:00
Elliot Glaysher
fbe0a78db5
Merge remote-tracking branch 'origin/king-haskell' into king-dawn
2019-10-03 15:41:09 -07:00
Elliot Glaysher
ea431e18ad
Merge remote-tracking branch 'origin/master' into king-haskell
...
This adds minor changes to king haskell to support the new boot
event structure.
2019-10-03 11:11:27 -07:00
Elliot Glaysher
4be3829b68
Make TLS work and get the comet sponsor list.
2019-10-02 13:55:30 -07:00
Elliot Glaysher
dd4551c996
Fix the format of the %barn event
2019-10-02 11:53:52 -07:00
Elliot Glaysher
1dd90f310b
Hook up the command line flags to the serf.
2019-10-02 11:50:03 -07:00
Elliot Glaysher
ea2be11f7c
Fixes the crash on planet startup.
2019-10-01 16:22:27 -07:00
Elliot Glaysher
2dfa1606f4
Fix Dawn event to be the right shape.
2019-10-01 15:26:34 -07:00
Elliot Glaysher
0de09bb97b
Reorganize the king new command line flags to boot from keyfiles.
...
(Ships booted from keyfiles are still in an invalid dill state.)
2019-10-01 14:44:14 -07:00
Elliot Glaysher
16440eaeb5
Fix TermEfInit so it takes a Ship instead of null
2019-10-01 11:36:46 -07:00
Elliot Glaysher
d96bf9bb52
Booting fake ships other than zod
2019-10-01 11:23:34 -07:00
Elliot Glaysher
51126ec1d4
Make the Behn tests less noisy.
2019-09-27 13:21:07 -07:00
Elliot Glaysher
a80b8fc8ee
Don't write files to disk during testing.
...
While doing our golden testing, we shouldn't write result files to
the filesystem. They are temporary and can fail. Use the in memory
comparisson function instead.
2019-09-27 11:09:10 -07:00
Elliot Glaysher
1c683b3d97
Merge remote-tracking branch 'origin/king-haskell' into king-dawn
...
Does a few small fixups for compilation and to make sure things
still work.
2019-09-27 10:30:26 -07:00
Benjamin Summers
b8106bc427
Wrote a golden test for map/set conversions.
2019-09-26 16:03:25 -07:00
Benjamin Summers
bfc8d30c9d
Explicitly implement (map -> hoon map) and write simple qc tests.
2019-09-26 14:28:11 -07:00
Benjamin Summers
ee0def33f5
Haskell <-> Hoon conversions for map and set.
2019-09-26 13:29:19 -07:00
Elliot Glaysher
7d78ed73f3
General cleanup
2019-09-26 11:37:19 -07:00
Elliot Glaysher
9765920763
Various cleanups to the validation code.
2019-09-26 11:14:24 -07:00
Elliot Glaysher
89245cae7e
Fixup return types and half-implement the moon case.
2019-09-25 15:52:19 -07:00
Elliot Glaysher
2eacf091e8
Remove commented out imports.
2019-09-25 15:19:24 -07:00
Elliot Glaysher
ec9466d22b
Now with a more filled in Dawn event.
2019-09-25 15:16:48 -07:00
Elliot Glaysher
8b46d2dfc8
Switched from cryptonite to ed25519; key derivation works now!
2019-09-25 14:26:51 -07:00
Elliot Glaysher
5a6c6ff7cc
End of day checkpoint.
2019-09-24 17:15:00 -07:00