Commit Graph

171 Commits

Author SHA1 Message Date
Benjamin Summers
154fc5f849 Never run a local terminal. 2019-12-17 03:29:58 -08:00
Benjamin Summers
dbe174d522 Updated tests to new Ames events. 2019-12-17 02:14:34 -08:00
Benjamin Summers
7e124cd3dd Merge branch 'king-haskell' of github.com:urbit/urbit into merge-king 2019-12-16 14:43:44 -08:00
Benjamin Summers
0fa9086b4d Fix a nasty bug in atom<->bytestring conversion. 2019-12-16 02:22:18 -08:00
Benjamin Summers
66fc04fde7 TODO HACK WIP DONTCOMMIT: Suppress serf logging. 2019-12-13 02:50:54 -08:00
Benjamin Summers
a1be331ac8 Make HTTP Server more lenient. 2019-12-13 02:10:53 -08:00
Benjamin Summers
c49e26d556 TODO HACK DONT COMMIT: Log to stderr 2019-12-13 02:02:10 -08:00
Benjamin Summers
acdd9b82f5 Remove timer hack from king<->serf protocol (should be fixed?) 2019-12-12 19:01:24 -08:00
Benjamin Summers
2a5f2a2d6e Make http-server less picky about request IDs. 2019-12-12 19:01:03 -08:00
Benjamin Summers
b2526854e8 Fix king bug validate-events 2019-12-12 19:00:35 -08:00
Benjamin Summers
c3e52b25e9 Merge branch 'king-haskell' of github.com:urbit/urbit into merge-king 2019-12-11 00:22:49 -08:00
Benjamin Summers
56f0f844c1 Disable one ames test in CI. 2019-12-10 23:14:51 -08:00
Benjamin Summers
3a99fe7834 Remove Isle for now. 2019-12-10 23:06:58 -08:00
Benjamin Summers
2505daf5c4 Update king<->serf protocol. Thanks Joe! 2019-12-10 22:57:05 -08:00
Benjamin Summers
b5919df50d Remove SDL dependency. 2019-12-10 22:38:35 -08:00
Benjamin Summers
624e054be4 Actually use lmdb-static package plus don't build all deps. 2019-12-10 22:06:43 -08:00
Benjamin Summers
545362e766 repn in Haskell. 2019-12-09 19:44:42 -08:00
Ted Blackman
5e7605ed25 king: update ames for alef 2019-12-09 21:45:19 -05:00
Elliot Glaysher
5f6d37fdd3 Hide --full-log-replay on main line. 2019-10-22 13:05:58 -07:00
Elliot Glaysher
8a09262092 Separate the config into pier and network sections.
Make the ames tests compile again, reading from a test instance of
HasNetworkConfig without phony HasPierConfig data.
2019-10-22 11:25:04 -07:00
Elliot Glaysher
0073b24b7e Move from -N to --dry-run. 2019-10-21 15:32:12 -07:00
Elliot Glaysher
44b65376b9 Implement --full-log-replay 2019-10-21 15:28:05 -07:00
Elliot Glaysher
92cd2863e5 Disable hashboard by default in king.
The vere implementation always disables hashboard, and this was why
king was so much slower.
2019-10-21 15:27:02 -07:00
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