Commit Graph

28128 Commits

Author SHA1 Message Date
Fang
3c5fd9fda6
ethereum: ensure "to" value is 20 bytes wide
Previously, this would measure as <20 bytes for addresses with leading
zeroes. This resulted in transactions with unexpected behavior.
For example, sending ETH to the zero address would create a contract
instead.

Here we switch to using +encode:rlp directly and indicate a width of
20 bytes for the "to" field.
2021-09-18 20:41:26 +02:00
Fang
d33f851466
ethereum: accept plain atoms for rlp encoding
It will measure them for you, making it easier to encode lists
containing both fixed- and variable-width numbers.

Largely obviates the need for +encode-atoms.
2021-09-18 20:41:21 +02:00
Fang
0c1e999cdb
ethereum: fix bug with rlp encoding of zero bytes
Null bytes in lists were getting eaten during concatenation. To avoid
this, we track encoded item widths (which are always 1 or higher) and
+can them all together.

This likely did not affect any of the other Ethereum code, considering
it nearly always measures atoms, and the null byte would be seen as
no bytes in that case.
2021-09-18 20:41:14 +02:00
Hunter Miller
2dbfbedd05 app-reference: correcting structure and hoon typings 2021-09-17 18:25:32 -05:00
Joe Bryan
d3e7dc1aa8
Merge pull request #5230 from urbit/jb/leaky
u3: checks memory on all road transitions (fall), fixes memory leaks
2021-09-17 15:43:04 -07:00
Edward Amsden
b889352caa
Merge pull request #5229 from urbit/jb/event-trace
serf: fix incorrect conditional (integer precision) in event tracing
2021-09-17 10:15:47 -04:00
Liam Fitzgerald
ce8f9d00fb hood: respect ordering of agents in bill 2021-09-17 15:43:30 +10:00
Liam Fitzgerald
7b9b0c62b7 various: update symbolic merges 2021-09-17 14:54:01 +10:00
Liam Fitzgerald
143a8e08e6 various: fix dependencies & tests 2021-09-17 14:51:19 +10:00
Liam Fitzgerald
5e5e0cb681
Merge pull request #5206 from urbit/lf/nu-hark-store
hark-store: revise for third party distro
2021-09-17 12:58:38 +10:00
Liam Fitzgerald
94fc096b80 Merge remote-tracking branch 'origin/dist' into lf/nu-hark-store 2021-09-17 12:57:56 +10:00
Liam Fitzgerald
e515314215
Merge pull request #5223 from urbit/hm/grid-tweaks
grid: various fixes and tweaks
2021-09-17 12:49:17 +10:00
Joe Bryan
2897d3a764 Merge branch 'release/next-vere' into jb/leaky
* release/next-vere: (104 commits)
  vere: adds backwards-compatibility TODO comments for terminal inputs
  vere: adds backwards-compatibility to blit handling under -t
  u3: replaces spurious bloq-size bail:exit's in +rap and +rep jets
  build: patch windows uv_pipe impl to allow null writes
  build: update pmnsh to support cachix text/x-nix-narinfo responses
  vere: renames terminal streams for clarity, removes unused uv_tcp_t
  vere: refactors _term_it_send_csi()
  vere: suppress null writes in term.c
  vere: use memset to wipe hashmaps
  pill: all
  webterm: simpler TermState
  webterm: clean up component state derivation
  webterm: fix broken api interactions
  herm: close old-style subscriptions
  webterm: include @urbit/api/term files
  herm: accept old /view/* wires
  hood, pill: clean up merge artifacts
  webterm: improve container handling
  webterm: factor logic out into functions
  webterm: more idiomatic array type definitions
  ...
2021-09-16 22:48:34 -04:00
Liam Fitzgerald
f690752180
Merge pull request #5219 from urbit/m/dist-webterm
dist: webterm: standalone package
2021-09-17 12:46:48 +10:00
Joe Bryan
9516bc532e tests: remove unnecessary runtime config from hashtable_tests 2021-09-16 22:40:00 -04:00
Joe Bryan
659dee11f5 u3: restore hashtable root struct layout for compatibility 2021-09-16 22:38:01 -04:00
Joe Bryan
d154d03e6f serf: fix incorrect conditional (integer precision) in event tracing 2021-09-16 22:32:26 -04:00
Liam Fitzgerald
f28bcf803f Merge remote-tracking branch 'origin/dist' into lf/nu-hark-store 2021-09-17 11:41:33 +10:00
Liam Fitzgerald
caad190e22 garden-dev: fix hark-store sur/ packaging 2021-09-17 10:51:30 +10:00
Liam Fitzgerald
faa1a515aa interface: replace invites, joining 2021-09-17 10:50:02 +10:00
Liam Fitzgerald
8a457c0762 landscape: update hark hooks for timeboxing 2021-09-17 10:48:38 +10:00
Liam Fitzgerald
993b529b9d grid: update for new hark timeboxing 2021-09-17 10:45:06 +10:00
Liam Fitzgerald
1d94d08d60 garden: rework hark-store timeboxing 2021-09-17 10:44:35 +10:00
Fang
6e487eb2fb
webterm: add glob url to desk.docket 2021-09-17 00:07:19 +02:00
Hunter Miller
58ea2b77a1 nav: better close behavior and small tweaks 2021-09-16 17:05:29 -05:00
Hunter Miller
77ad1fdb36 permalink: app embed image support 2021-09-16 16:23:11 -05:00
Hunter Miller
d786c8d677 permalink: app embeds 2021-09-16 16:05:54 -05:00
Ted Blackman
3b30b67a3e Merge branch 'ted/kiln-warp' into m/distpilled, and
modify Kiln to listen for %writ's from Clay to track commits to Clay
that were not generated by Kiln itself.
2021-09-16 12:25:02 -04:00
Hunter Miller
1d71c83581 suspend-dialog: removing ungrammatical comma 2021-09-16 09:29:35 -05:00
Hunter Miller
082a4c66ec Merge branch 'dist' into hm/grid-tweaks 2021-09-15 20:41:02 -05:00
Liam Fitzgerald
bf85175db0
Merge pull request #5222 from urbit/hm/system-prefs-hookup
system-prefs: hooking up remaining settings
2021-09-16 09:24:50 +10:00
Fang
a29c3414d9
solid: support generating multi-desk pills
Notably, we include the base desk last. This is to ensure that the
other desks are present by the time kiln gets loaded from base, letting
it install the software on the other desks, as per 22ad2516c.
2021-09-15 23:53:52 +02:00
Fang
22ad2516c9
kiln: install from existing desks during +on-init
During kiln's +on-init, we now check for non-base (and non-kids) desks.
If any are present, we execute the install flow for them, and set them
to sync from our sponsor afterwards.

This depends on work done in d7afe3229, in that without those changes
the successive +find requests from kiln to clay would clobber each
other, leaving only the "install from sponsor" one active, thus never
actually installing the desk for which we already have the files.
2021-09-15 23:53:24 +02:00
Fang
d7afe32291
kiln: synchronize install flow for local desks
When installing from an existing local desk, kiln now scries the
relevant data out of clay instead of sending moves to it and awaiting
responses.

This prepares for coming kiln work.
2021-09-15 23:52:50 +02:00
Hunter Miller
2db9461e48 http-api: fixing Thread type 2021-09-15 16:40:55 -05:00
Hunter Miller
326a14f237 prefs: adding support for enabling/disabling app updates 2021-09-15 16:26:43 -05:00
Ted Blackman
577ec24459 kiln: WIP listen to %warp's too 2021-09-15 22:57:08 +03:00
fang
39667fc071
Merge pull request #4463 from urbit/m/next-gen-term
term: next gen, phase one
2021-09-15 18:43:10 +02:00
Hunter Miller
e6fcaafe3c ci: allows us to deploy frontends to vercel 2021-09-15 11:42:22 -05:00
Edward Amsden
698fd6f66f
Merge pull request #5218 from urbit/ea/memset-to-wipe-dict32
vere: use memset to wipe hashmaps
2021-09-15 10:13:25 -04:00
Joe Bryan
57897fd726
Merge pull request #5225 from urbit/jb/jet-bloq-fail
u3: replaces spurious bloq-size bail:exit's in +rap and +rep jets
2021-09-15 06:31:59 -07:00
Joe Bryan
c270708b76 vere: adds backwards-compatibility TODO comments for terminal inputs 2021-09-15 00:21:08 -04:00
Joe Bryan
b0b2e3aec8 vere: adds backwards-compatibility to blit handling under -t 2021-09-15 00:21:08 -04:00
Joe Bryan
0d18b13cb9 u3: replaces spurious bloq-size bail:exit's in +rap and +rep jets 2021-09-14 23:56:28 -04:00
Paul Driver
ce59348eb9 fix leak in hashtable
trimming a node with 2 entries failed when one was another node; the code
assumed (erroneously) the neighbor would be a kev.
2021-09-14 18:38:04 -07:00
Hunter Miller
e69395d46d favicon: adding temp favicon and added symbol ignoring to leap 2021-09-14 18:52:52 -05:00
Hunter Miller
65b9f229c5 nav: fixing dimming and inter nav clicks 2021-09-14 17:52:12 -05:00
Joe Bryan
41450edd46
Merge pull request #5221 from urbit/jb/next-gen-term
vere: windows fixes, refactoring for new terminal
2021-09-14 15:01:49 -07:00
Hunter Miller
78e623c019 theme: matching setting value to current imp 2021-09-14 16:32:27 -05:00
Fang
b23d9d7002
docket: loosen restrictions on glob uploads
Now also lets you upload globs that the local ship isn't the canonical
source for. Could come in handy for troubleshooting, among other things.
2021-09-14 23:29:07 +02:00