Commit Graph

269 Commits

Author SHA1 Message Date
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
Gabriel Cardona 3d60db3a05 Subtract from balance when adding a default subnet delegator. 2020-06-11 13:14:02 -07: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
Determinant 70ab3160ce make JSON-RPC local by default; add basic logging for C-Chain 2020-06-05 15:00:12 -04:00
Aaron Buchwald 80ae0ee400
Fix handling of default subnet ID 2020-06-04 19:58:55 -04:00
Aaron Buchwald 3c38ccf1d6 Add P- prefix to P-chain addresses in platform API 2020-06-04 19:46:45 -04:00
Aaron Buchwald b6d8ebefe6
Implement import and export key for platform api 2020-06-03 21:04:01 -04:00
StephenButtolph bdb81df0d2 Turned off sig verification in the AVM during bootstrapping 2020-06-02 17:01:51 -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 d088a9b29a Merge branch 'add-address-get-validators' into denali 2020-05-30 16:04:58 -04:00
StephenButtolph 1abf68cee2 changed logs to returned errors 2020-05-30 16:04:40 -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
StephenButtolph dedc3b20a6 Added shutdown timeouts 2020-05-29 18:32:17 -04:00
Dan Laine 4142160b8c add address that staked funds/reward are sent to to getCurrentValidators and getPendingValidators 2020-05-29 16:57:08 -04:00
Collin Montag 33eca06ca2 state test pruning 2020-05-29 00:03:14 -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 bb11465d7e added listAddresses API to the AVM 2020-05-25 22:29:36 -04:00
StephenButtolph 40cb65ed8f merged 2020-05-23 17:19:16 -04:00
StephenButtolph 896cafdcbb debugging utxo error 2020-05-20 11:37:01 -04:00
StephenButtolph 503c90e839 Clean up the acceptance of atomic blocks 2020-05-18 11:33:58 -04:00
StephenButtolph 56bbee491c Merge branch 'master' into less-logs 2020-05-12 14:02:49 -04:00
StephenButtolph 5e6e3d61f2 merged 2020-05-12 01:27:13 -04:00
StephenButtolph 1dc6fb77b9 merged 2020-05-11 22:41:05 -04:00
StephenButtolph 0c2354dbae Fixed race in platformvm repolling 2020-05-11 22:24:28 -04:00
Stephen Buttolph 81fd81e055
Merge branch 'master' into platform_nil_shortids 2020-05-11 14:09:59 -04:00
Stephen Buttolph c473098d2a
Merge branch 'master' into api-error-checking 2020-05-10 19:28:00 -04:00
Stephen Buttolph a27cd6f8e2
Merge branch 'master' into get-address-api 2020-05-10 19:27:20 -04:00
StephenButtolph 69065c50b5 Changed sk indexing, bumped version 2020-05-10 19:26:39 -04:00
StephenButtolph 56deaf7c9d Merge branch 'master' into get-address-api 2020-05-10 18:37:12 -04:00
StephenButtolph ed7ea5856e Cleaned address bytes 2020-05-10 18:37:09 -04:00
StephenButtolph d082579393 finished race cleanup in the avm tests 2020-05-10 17:12:03 -04:00
StephenButtolph 8dd5f21847 clean up locking in the AVM / platformVM tests 2020-05-10 17:03:12 -04:00
Stephen Buttolph b1533fd05d
Merge branch 'master' into vms-avm-shutdown-locking 2020-05-10 15:43:10 -04:00
StephenButtolph ac27d66c02 Fixed platformvm locking 2020-05-10 15:26:41 -04:00
Dan Laine 1a6986f1ba lower log levels more. Lowercase 1st letter of logs. 2020-05-09 19:20:45 -04:00
Stephen Buttolph 4bb2325c51
Merge branch 'master' into vms-avm-shutdown-locking 2020-05-08 13:37:25 -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
StephenButtolph 966e28d928 Added UTXOIDs to the getBalance call to enable atomic reads 2020-05-07 17:31:50 -04:00
Dan Laine 79e493e314 change log levels so they print less 2020-05-07 16:36:18 -04:00
Stephen Buttolph ebdee1a03d
Merge branch 'master' into get-tx 2020-05-07 14:31:53 -04:00
StephenButtolph 522c946115 Added GetTx method to the AVM endpoint 2020-05-07 14:30:14 -04:00
Stephen Buttolph b6d4cab519
Merge branch 'master' into gossip 2020-05-07 12:28:14 -04:00
bb-2 d8a8617e3b move the argument validity checks to the top of the methods 2020-05-07 11:21:26 -04:00
bb-2 41e3ccbded prevent runtime error in user.getKey by checking for nil shortID's in request args 2020-05-07 08:21:45 -04:00
Dan Laine 89f64028fc change method name to listAddresses, per Collin's request 2020-05-06 15:40:36 -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 2e2e033562
Merge branch 'master' into gossip 2020-05-05 14:26:25 -04:00
Stephen Buttolph 6fa1f12210
Merge branch 'master' into api-error-checking 2020-05-05 14:10:57 -04:00
Stephen Buttolph 1834c6db7b
Merge branch 'master' into gossip 2020-05-05 14:01:43 -04:00
bb-2 c3b3b14872 Moving the cache put statements in SetStatus and SetIDs to be after the error checking 2020-05-05 08:10:22 -04:00
Dan Laine 5d115a0b62 %v --> %w 2020-05-04 17:16:00 -04:00
Dan Laine a721c188a5 use asset alias in response 2020-05-04 17:06:07 -04:00
Dan Laine d727166f4f change response format for getAllBalances 2020-05-04 14:44:35 -04:00
Dan Laine f34efce29f Merge branch 'list-assets' of github.com:ava-labs/gecko into list-assets 2020-05-04 13:59:33 -04:00
StephenButtolph dfbb17aaed Added gossip params to tests 2020-05-04 13:59:25 -04:00
Dan Laine cbb20b2faa return 'AVA' rather than its asset id 2020-05-04 13:59:10 -04:00
Dan Laine f104b5f115 add sanity checks to platform API method arguments 2020-05-03 18:16:25 -04:00
Stephen Buttolph daa96cfc8e
Merge branch 'master' into list-assets 2020-05-03 02:56:52 -04:00
Dan Laine 9d4ed06087 add getAddresses API method on avm 2020-05-02 17:53:28 -04:00
StephenButtolph 4c3fce408e Added user tests 2020-05-02 14:05:57 -04:00
StephenButtolph acb96c8184 check for nil account IDs in get user 2020-05-02 13:22:11 -04:00
Dan Laine 10aa724d30 don't try to sort balances since maps aren't sorted by key. simplify balance calculation since zero value of uint64 is 0. 2020-05-01 13:28:38 -04:00
Dan Laine a0bd9cdcfb Merge branch 'master' into list-assets 2020-05-01 12:55:16 -04:00
StephenButtolph 7c11e91a53 Removed debug logging 2020-05-01 00:21:17 -04:00
StephenButtolph e7f593f3f7 Removed broken parent caching 2020-04-30 16:22:19 -04:00
Stephen Buttolph 34af9fb7f7
Merge branch 'master' into platformvm-proposal-accept 2020-04-28 19:35:13 -04:00
Alex Willmer db56cccd4c
Merge branch 'master' into vms-avm-shutdown-locking 2020-04-28 22:16:25 +01:00
StephenButtolph 83c5bf39ae Added handling for if bootstrapping partially accepted a block pair 2020-04-28 15:53:36 -04:00
StephenButtolph 9580a3bf0f Fixed platform vm writeback of ProposalBlocks 2020-04-28 12:31:04 -04:00
Stephen Buttolph b04b84d4c9
Merge branch 'master' into minor-fixes 2020-04-27 13:06:12 -04:00
Anil Dasari 5440369118 static analyis fixes 2020-04-24 14:47:19 -07:00
Anil Dasari 88228ac1d6 error check 2020-04-24 13:42:36 -07:00
Anil Dasari 737087f0ca error check and go fmt 2020-04-24 13:31:12 -07:00
StephenButtolph bbe250c529 endtime -> endTime 2020-04-24 16:24:10 -04:00
Anil Dasari 628856992f added warn log incase of addroute failure 2020-04-24 13:23:07 -07:00
Anil Dasari b1ea742cf2 minor fixes 2020-04-24 13:01:42 -07:00
Alex Willmer 9f1aa5bbd2 vms: Ensure all spdagvm.VM instances in tests get shutdown 2020-04-21 01:41:12 +01:00