Commit Graph

249 Commits

Author SHA1 Message Date
Stephen Buttolph 284d0ee765
Merge branch 'master' into codec-upgrade 2020-06-16 00:45:20 -04:00
Stephen Buttolph 93cb630a6f
Merge branch 'master' into log-level-and-format 2020-06-16 00:19:59 -04:00
Gabriel Cardona aa5422696e Set helpers to Debug log level. 2020-06-15 21:14:54 -07:00
Aaron Buchwald b950f016d8
Fix platform bootstrapped function to initialize fx 2020-06-15 21:53:29 -04:00
Gabriel Cardona ef0b9bfb1e Merge branch 'master' into log-level-and-format 2020-06-15 15:07:44 -07:00
Stephen Buttolph 21d65dc167
Merge branch 'master' into duplicates-avm-import-key 2020-06-15 15:14:01 -04:00
Aaron Buchwald 8783844aca
Fix nitpick 2020-06-15 14:20:16 -04:00
Dan Laine 18c0b0a65b move codec to utils 2020-06-15 13:20:30 -04:00
Dan Laine acbb9a7e0c remove expansionBoost from packer (Go's append does similar already). change initialSliceCap 1024 --> 256. Streamline packer.Expand, as this method is called very often 2020-06-15 13:12:55 -04:00
Gabriel Cardona cdac10c23b Fix typos. 2020-06-15 09:45:21 -07:00
Gabriel Cardona f59f45a20f Make all RPC call logs `Info` level. 2020-06-15 09:35:41 -07:00
Dan Laine a84abacea5 fix typos and removed useless benchmark 2020-06-15 10:55:09 -04:00
Dan Laine 979477d68f change initialSliceCap --> 1024 2020-06-15 10:46:22 -04:00
Dan Laine cea79f66b2 add to tests; comment them 2020-06-15 10:33:08 -04:00
Dan Laine f28b69b819 set initial slice capacity for packer; packer pre-allocates capacity when possible 2020-06-15 10:06:40 -04:00
Dan Laine b269f8cfb0 marshal writes directly to packer rather than creating array of functions 2020-06-14 21:38:07 -04:00
Dan Laine d1796c8b0b cleanup; revert string packing method 2020-06-14 18:15:44 -04:00
Dan Laine 9c4cfecf4e pack pointer to string instead of string...halves memory footprint 2020-06-14 12:23:05 -04:00
Dan Laine ee1cf620a1 cleanup 2020-06-14 12:06:39 -04:00
Dan Laine 7b5b3d1f1c more optimizations/cleanup 2020-06-14 11:53:19 -04:00
Dan Laine f6cabee51b cache serializable fields of struct types; change codec methods to be on pointer type; change variable names; change benchmark toinclude both marshaling and unmarshaling 2020-06-14 10:56:43 -04:00
Gabriel Cardona d85ef87695 * Use Debug log level for all RPC calls
* Use convention: [vm/api: function_name called...]. Ex: "Platform: SampleValidators called...
2020-06-13 11:06:32 -07:00
Dan Laine 954074abcc optimize by reducing amount of data stored on heap 2020-06-12 19:26:03 -04:00
Dan Laine 42deac45e9 use pre-allocated array of functions 2020-06-12 19:03:08 -04:00
Dan Laine a895b691a2 change wire format to be exact same as it was before 2020-06-12 16:52:58 -04:00
Aaron Buchwald 2fb88906cc
Add testing for avm API ImportKey 2020-06-12 15:10:39 -04:00
Aaron Buchwald 1572b1bd97
Return early when finding address already exists 2020-06-12 14:09:45 -04:00
Aaron Buchwald 750f7b2120
Improve error message in platform API IssueTx call 2020-06-12 13:49:26 -04:00
Aaron Buchwald 26f5503a43 Add test to ensure IssueTx maintains ordering of unissued events heap 2020-06-12 12:58:35 -04:00
Aaron Buchwald e15c1bad8c Use Add instead of Push to correctly order timed txs in event heap 2020-06-12 12:58:35 -04:00
Dan Laine 617a158097 use wrappers.packer instead of byte array 2020-06-12 10:41:02 -04:00
Dan Laine 7879dd1768 upgrade codec to be more efficient. Passes all codec tests. Failing some other tests due to new format 2020-06-11 18:16:21 -04:00
Aaron Buchwald e073b4e8ad
Prevent duplicated addresses in avm import key 2020-06-11 17:01:28 -04:00
Dan Laine b576f27397 comments/reorganize 2020-06-10 16:20:40 -04:00
StephenButtolph 55b0f550ee reduced tx cache size 2020-06-10 04:50:53 -04:00
StephenButtolph bdeff86f7a reduced log level 2020-06-10 04:30:49 -04:00
StephenButtolph 8ed43f464c Added switch for temporary and permanent errors in proposal blocks 2020-06-08 18:57:05 -04:00
Dan Laine f8c202e4be don't mark blocks with advanceTimeTxs as rejected if the tx fails verification 2020-06-08 17:11:53 -04:00
StephenButtolph c86838f2e8 Moved rpcchainvm logs to live under their chain 2020-06-08 11:53:55 -04:00
StephenButtolph 921cca2ce1 Improved X-chain bootstrapping 2020-06-08 03:10:14 -04:00
StephenButtolph 6c12d5ffa5 updated test to use strings rather than IDs 2020-06-07 18:27:45 -04:00
Stephen Buttolph a68fcf9a45
Merge pull request #60 from ava-labs/c-chain-local-rpc
C chain local rpc
2020-06-07 18:16:26 -04:00
StephenButtolph 9cae34dcfc Merge branch 'network-upgrade' into c-chain-local-rpc 2020-06-07 18:13:32 -04:00
Stephen Buttolph a8d40fedb7
Merge pull request #54 from ava-labs/platform-keys
Platform API update
2020-06-07 16:27:07 -04:00
Aaron Buchwald f7747db2e5
Remove P- prefix 2020-06-07 14:52:02 -04:00
StephenButtolph b73e087f9d Cache that blocks are rejected if they are invalid 2020-06-07 02:05:14 -04:00
StephenButtolph 11520fa704 merged 2020-06-07 01:08:53 -04:00
StephenButtolph 4ac34ad296 nits 2020-06-06 23:52:44 -04:00
StephenButtolph aab9005d68 fixed tests 2020-06-06 12:23:54 -04:00
Dan Laine d69a875039 fix/add unit tests. All pass 2020-06-05 18:03:34 -04:00