Commit Graph

52 Commits

Author SHA1 Message Date
Dan Laine 8e4c57bcd3 Merge remote-tracking branch 'origin/master' into optimize-state 2020-06-17 09:04:20 -04: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
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
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
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
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
Dan Laine b576f27397 comments/reorganize 2020-06-10 16:20:40 -04:00
StephenButtolph bdeff86f7a reduced log level 2020-06-10 04:30:49 -04:00
StephenButtolph cd669a3d98 Added bootstrapping notifications to VMs 2020-06-01 23:24:21 -04:00
StephenButtolph f6244aaca4 allowed for multiple DB types to be used in the fund indexer 2020-05-31 15:43:01 -04:00
StephenButtolph 3d5a838ce6 merged utxo indexing upgrade 2020-05-30 12:47:23 -04:00
StephenButtolph 97754e2545 Added tests for separation between the avm and the platformvm 2020-05-30 12:44:41 -04:00
Collin Montag 232f962d4b updated tests 2020-05-28 23:50:33 -04:00
StephenButtolph 6318186848 wip currently has a deadlock error 2020-05-28 23:48:08 -04:00
Collin Montag 198accdea7 ava state prefixdb 2020-05-28 10:36:00 -04:00
StephenButtolph e57219a648 Merged bootstrapping error handling 2020-05-26 13:57:42 -04:00
StephenButtolph 537e72714f Added returned errors to Accept and Reject in decidables 2020-05-26 13:25:34 -04:00
StephenButtolph 896cafdcbb debugging utxo error 2020-05-20 11:37:01 -04:00
StephenButtolph 3130eb13bf Hid the Symbolic UTXO, from the json serialization, as it is an implementation detail 2020-05-07 17:36:27 -04:00
bb-2 d35834c4e5 move avm cache puts after error checking and catch err on status unmarshalling 2020-05-06 08:49:44 -04:00
Stephen Buttolph 34af9fb7f7
Merge branch 'master' into platformvm-proposal-accept 2020-04-28 19:35:13 -04:00
StephenButtolph 83c5bf39ae Added handling for if bootstrapping partially accepted a block pair 2020-04-28 15:53:36 -04:00
Anil Dasari 5440369118 static analyis fixes 2020-04-24 14:47:19 -07:00
Stephen Buttolph 42baab2881
Move Geth to a plugin connected at runtime
* removed coreth + geth dependency for the C-chain, still have nat + crypto dependencies

* Added first past of nat traversal

* Removed go-eth dependency for secp256k1

* renamed db files to not repeat the package title

* Added rpcdb, untested

* Added rpcdb tests

* removed defer from loop

* cleaned up tests

* Started working on the rpc chain VM

* First pass of vm plugin support

* Added http over grpc

* added beta support for http handlers

* updated vms for the rpcvms

* Added error returns for factories

* Added EVM back to the genesis

* Added the EVM factory

* Added EVM aliasing, fixed nil pointer bugs during shutdown

* Added plugin folder

* Removed plugins folder, add default params for the plugin dir

* Added http RPC test

* Added cascade evm genesis

* Removed debug line

* removed more debug lines

* Cleaned up import statement

* Changed default plugin dir to ./plugins

* build evm plugin auto in the build script
2020-04-16 11:39:20 -04:00
Alex Willmer 86e66cf075 vms: Add TestSerializeOfNoSerializeField 2020-04-09 00:32:32 +01:00
Alex Willmer bdb5153f2d vms: Add test for uint16 serialization 2020-04-09 00:31:50 +01:00
StephenButtolph ff03ea957c Removed unused code 2020-04-04 16:40:01 -04:00
StephenButtolph ffcdfafaf6 Implemented fx operations 2020-03-30 01:08:45 -04:00
StephenButtolph 93ff9d906b merged 2020-03-29 14:46:18 -04:00
StephenButtolph 48f9a52ed8 Merge branch 'master' into atomic 2020-03-27 02:42:59 -04:00
StephenButtolph 9da52e70c0 Add address tracking to atomic utxos 2020-03-26 23:11:23 -04:00
Dan Laine c1abff8c3d fix bug where unmarshalling into improper type causes panic. Add test for this 2020-03-26 15:14:45 -04:00
StephenButtolph 3efccbf354 finished first pass of atomic swaps 2020-03-26 11:27:47 -04:00
StephenButtolph 93ed25f878 wip 2020-03-25 23:48:21 -04:00
StephenButtolph 552e63f2eb Added export Tx to the AVM 2020-03-24 12:39:25 -04:00
Stephen Buttolph 01fe74ec6b wip 2020-03-23 16:40:37 -04:00