Commit Graph

644 Commits

Author SHA1 Message Date
Alex Willmer fdff7839b3 build: Fail loudly if bash variables are unset, or a pipeline errors
These bash options increase the robustness of bash scripts, increasing
the chances that errors are spotted, instead of passing silently.

errexit was already enabled (by bash -e) if the scripts were invoked as

path/to/script.sh

However bash -e would not take effect if the script was invoked as

bash path/to/script.sh

The long form of the options is used to serve as an memory aide for
readers unfamiliar with bash options.
2020-05-11 20:48:02 +01:00
Alex Willmer c32ea10fca Standardise newline and trailing whitespace conventions
This change aims to reduce incidental changes in pull requests caused by
configuration and UI differences in text editors. The chosen conventions
are

- unix line endings
- trim trailing whitespace
- terminate files with a newline

editorconfig is an informal convention that indicates preferred line and
file terminations to text editors and other tools. Several editors have
builtin support, and many more have plugins available.

More info at https://editorconfig.org/
2020-05-11 20:31:59 +01:00
Anil Dasari 8c2b71e00b refactoring and styling fix 2020-05-12 00:46:26 +05:30
Stephen Buttolph 39cb2c1eb0
Merge pull request #142 from bb-2/platform_nil_shortids
Check for nil shortIDs in platformvm service requests
2020-05-11 15:15:50 -04:00
Anil Dasari 8b83cb5175 review comments: remove from all dbs 2020-05-12 00:41:04 +05:30
Stephen Buttolph 81fd81e055
Merge branch 'master' into platform_nil_shortids 2020-05-11 14:09:59 -04:00
Dan Laine fa230e6e90 fix typo 2020-05-11 11:48:16 -04:00
Dan Laine 8b76376bfb lower log levels. Formatting 2020-05-11 10:42:50 -04:00
Dan Laine bc535965fe lower log level 2020-05-11 10:19:51 -04:00
Stephen Buttolph d66c6d1c61
Merge pull request #135 from ava-labs/api-error-message
make error message more clear when an API argument can't be unmarshaled
2020-05-10 19:58:13 -04:00
Stephen Buttolph 50f88cf240
Merge branch 'master' into api-error-message 2020-05-10 19:40:51 -04:00
Stephen Buttolph 84a99e183a
Merge pull request #128 from ava-labs/api-error-checking
add sanity checks to platform API method arguments. Resolves #127
2020-05-10 19:40:28 -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
Stephen Buttolph a60c7286ec
Merge pull request #154 from StephenButtolph/race-test-fixes
Test race fixes
2020-05-10 17:32:51 -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 373fc642d5
Merge pull request #79 from moreati/vms-avm-shutdown-locking
vms: Fix locking during avm.VM.Shutdown(), ensure test VMs are shutdown
2020-05-10 16:34:10 -04:00
Stephen Buttolph b1533fd05d
Merge branch 'master' into vms-avm-shutdown-locking 2020-05-10 15:43:10 -04:00
Stephen Buttolph f3974ccc53
Merge pull request #153 from StephenButtolph/lock-correctly-in-new-tests
Fixed platformvm locking
2020-05-10 15:42:55 -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
StephenButtolph 8e74f1abb6 Cleaned up and tested common.Requests 2020-05-08 21:06:50 -04:00
StephenButtolph 1b722ae5c0 merged 2020-05-08 20:36:05 -04:00
Dan Laine cb3110f424 fix error handling. Use env variable expansion. Change defaults to use /home/danlaine 2020-05-08 18:17:54 -04:00
Stephen Buttolph 4bb2325c51
Merge branch 'master' into vms-avm-shutdown-locking 2020-05-08 13:37:25 -04:00
Dan Laine 24f8c38878 lower log levels and make logs more descriptive 2020-05-08 10:01:05 -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
Dan Laine 03ddc6c034 fix bug 2020-05-07 15:17:13 -04:00
Dan Laine cccebe181f Merge branch 'master' of github.com:ava-labs/gecko into move-keys-dir 2020-05-07 14:34:51 -04:00
Dan Laine 6bd84af8ec generate staking key at ~/.gecko/staking/staker.key if no key given. 2020-05-07 14:34:32 -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 67c6682600
Merge branch 'master' into go-signals 2020-05-07 13:00:03 -04:00
Stephen Buttolph 394441cbb4
Merge pull request #129 from StephenButtolph/gossip
Gossip
2020-05-07 12:59:46 -04:00
Stephen Buttolph b6d4cab519
Merge branch 'master' into gossip 2020-05-07 12:28:14 -04:00
Dan Laine 02f162db1a remove key/cert generator script 2020-05-07 12:22:09 -04:00
StephenButtolph c43d9f5b2f Cahgned kill_playbook to send proper signal 2020-05-07 12:04:04 -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
Anil Dasari c81521a454 comments typo correction 2020-05-07 13:08:42 +05:30
Anil Dasari b096ee6771 add DeleteUser rpc 2020-05-07 13:00:27 +05:30
StephenButtolph a5a3c703f1 Removed cgo signal handlers 2020-05-06 20:57:45 -04:00
StephenButtolph 87a175eaaf Changed signal handling to use go signal handlers 2020-05-06 20:55:52 -04:00
Stephen Buttolph 982447e8e8
Merge pull request #138 from bb-2/avm_cache_puts
Move avm cache puts after error checking
2020-05-06 16:20:16 -04:00