Commit Graph

269 Commits

Author SHA1 Message Date
StephenButtolph 0cb534031a Merge branch 'denali' into c-chain-next 2020-06-23 20:12:17 -04:00
Determinant d40fbe8f75 improve plugin logging 2020-06-23 18:33:57 -04:00
Determinant 7591e93e08 remove go-plugin logging; use coreth 0.2.5 2020-06-23 17:36:20 -04:00
Dan Laine 6c6136d551 only downsize underlying arrays if they're much too large 2020-06-23 16:44:02 -04:00
Dan Laine 19a3f69e99 Merge branch 'duplicated-writes' into memory-improvements 2020-06-23 13:10:01 -04:00
Dan Laine f92fa88d24 commit db after parsing tx to avoid memory leak 2020-06-23 13:04:10 -04:00
Dan Laine c9aa8eedc2 pre-allocate arrays 2020-06-22 16:50:31 -04:00
StephenButtolph 473bef24b1 removed duplicated batch writes, fixed tests 2020-06-22 15:50:52 -04:00
StephenButtolph 006ff75149 improve leveldb batch usage and pointer releasing in caches 2020-06-19 11:02:38 -04:00
StephenButtolph f78d7b3caf use transitive dependencies when possible with transaction dependencies 2020-06-18 13:34:04 -04:00
StephenButtolph be6be7ae1c reverted breaking changes 2020-06-18 01:45:58 -04:00
Stephen Buttolph 8d5559393f
Merge branch 'master' into optimize-state 2020-06-17 13:58:26 -04:00
Gabriel Cardona f40fa7d7e6 Formatting. 2020-06-17 10:21:11 -07:00
Aaron Buchwald 077afc20e7
Adjust delegator test cases 2020-06-17 13:16:37 -04:00
Gabriel Cardona 82b91e5244 Add tests for platform.addDefaultSubnetDelegator for confirming tx fails when attempting to delegate too much as well as confirming balance is correct after delegating. 2020-06-17 10:00:41 -07:00
Dan Laine 8e4c57bcd3 Merge remote-tracking branch 'origin/master' into optimize-state 2020-06-17 09:04:20 -04:00
Gabriel Cardona 553bc117b0 Merge branch 'master' into patch-add-default-subnet-delegator-tx 2020-06-17 04:37:05 -07:00
Dan Laine ddcc2d73a2 lazily fetch block status 2020-06-16 18:14:16 -04:00
Dan Laine 4223e1f9d5 remove unnecessary call to Has 2020-06-16 17:51:49 -04:00
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