Граф коммитов

276 Коммитов

Автор SHA1 Сообщение Дата
Amaury Chamayou e3b1f0140e Remove warmup cooldown (#246) 2019-07-12 10:32:20 +01:00
Amaury Chamayou 746ef708dc
Fix performance regression when not using PBFT (#245) 2019-07-12 09:52:05 +01:00
Amaury Chamayou c399249977
Fix circle (#244) 2019-07-12 08:24:50 +01:00
Roy Schuster 1dab271820
Reverted secp256k1 verification to use public key from cert (#235)
* Reverted secp256k1 verification to use public key from cert
2019-07-09 15:25:16 +01:00
Amaury Chamayou 28cfce70d0
Try to make LGTM find more code (#232) 2019-07-08 13:47:09 +01:00
Amaury Chamayou 76923038f6
Compact the right history where recovering private ledger (#233) 2019-07-08 13:46:47 +01:00
Amaury Chamayou a2b97ed359
Fix LGTM warning (#231)
Fixing https://lgtm.com/projects/g/microsoft/CCF/alerts/?mode=list
2019-07-08 08:48:48 +01:00
Amaury Chamayou bb43c3482b
Always sign member commands (#229) 2019-07-05 14:32:02 +01:00
Amaury Chamayou 430829f598
Fix joinrpc command (#228) 2019-07-05 13:33:45 +01:00
Sylvan Clebsch c2806470e2 add rbmap and champ get by pointer calls (#210) 2019-07-05 11:17:01 +01:00
olgavrou 893f529328
fixing typos that break common ci (build with -DPBFT=ON) (#223) 2019-07-04 16:27:33 +01:00
Roy Schuster 726adaa9e1
Allowing to break KV foreach loops (#221)
* Allowing to break KV foreach loops
2019-07-04 14:46:34 +01:00
Amaury Chamayou 5cb4d5e6d0
Logging change (#222) 2019-07-04 14:20:40 +01:00
Julien Maffre ce1fb1f56b
Adding basic documentation for governance (#217) 2019-07-04 13:26:46 +01:00
Amaury Chamayou 3c44e87866
Hooks in history for initial PBFT integration (#220) 2019-07-04 10:44:53 +01:00
Roy Schuster 1dfb3baca3
Not allowing adding nodes with a host:port combination that already exists (#218)
* Not allowing to add nodes with a host:port combination that already exists
2019-07-04 09:59:35 +01:00
Roy Schuster 2025258d75
Secp256k1 bc verify using embedded signature (#213)
* Added support for secp256k1 verification using the embedded signature
2019-07-03 15:15:21 +01:00
Eddy Ashton f847c40a85
add_custom_command rather than add_custom_target (#211)
Avoid patching in every build
2019-07-03 11:41:56 +01:00
Eddy Ashton cbb2992b3a
Allow RPC body to be given on command line (#207)
* --req arg can take @file or RPC contents

* Update docs

* Explicit startnetwork, file args during startup

* Formatting

* Correct capitalisation
2019-07-03 09:36:36 +01:00
Eddy Ashton a8624c0ce2
Add getNetworkInfo RPC (#201)
* Add GetNetworkInfo definitions

* Implement GetNetworkInfo

* Add generated schema
2019-07-01 16:50:12 +01:00
Amaury Chamayou 7c952c208a
Remove log line (#198) 2019-07-01 13:24:42 +01:00
Amaury Chamayou 5c76cc2123
Fix docgen (#194) 2019-06-27 13:45:28 +01:00
Eddy Ashton 5716ccb74d
LocalRemote can run binaries from outside build directory (#192)
* Don't chmod LocalRemote files
Only relative paths should be corrected

* Comment tweak

* Format
2019-06-27 13:42:31 +01:00
Amaury Chamayou 10dbabb7af Remove direct Hacl_ calls (#191) 2019-06-27 13:29:47 +01:00
Eddy Ashton 87ba9c8a4b
Schedule morning CI earlier (#193)
It should run when the VMs start, regardless of daylight savings
2019-06-27 13:06:46 +01:00
Roy Schuster 2ad5f162cd
Code version testing (#187) 2019-06-26 15:51:10 +01:00
motdc 906d085948
Fixed ITimer build (#190) 2019-06-26 15:32:08 +01:00
Eddy Ashton a171802ff4
Scheduled CI build (#189)
* Add daily morning CI build

* CI machines don't start on weekends, don't schedule jobs
2019-06-26 12:59:26 +01:00
Amaury Chamayou a5a7fcea3c
Allow sgx only as well as virtual only (#188) 2019-06-25 15:37:05 +01:00
Julien Maffre 0d855ff4da
Evercrypt update (#182) 2019-06-24 15:52:11 +01:00
Amaury Chamayou 0b95d4f1c3
Restrict CI runs to branches that opt in, PRs, and to only files that… (#186) 2019-06-24 13:44:27 +01:00
Amaury Chamayou beeb07086a
Update service connection name for new sub (#185) 2019-06-21 18:18:31 +01:00
Eddy Ashton e3ca9fa35f
Remove static_checks from VSTS - its in CircleCI (#184) 2019-06-21 17:26:26 +01:00
Eddy Ashton 32a520df4c
DevOps test fan-out (#183) 2019-06-21 16:27:54 +01:00
Eddy Ashton 2989f5510c
Fixed width log prefix (#181)
* Initial fixed format prefix

* Combine filename and line number
2019-06-20 11:24:50 +01:00
Eddy Ashton d19f0b368f
Friendlier formatting of log messages (#179)
* Stop repeating FMT_HEADER_ONLY

* Remove unnecessary format separator

* Add LOG_*_FMT macros

* Many replacements, mostly LOG_INFO > LOG_INFO_FMT

* Finish nodestate.h

* Fix typos

* Halfway through raft.h

* LOG_FATAL > LOG_FATAL_FMT

* Prefer continue to empty while, for readability

* Replace all LOGs in tcp.h

* Replace remaining LOG_TRACEs

* Add picobench tests comparing LOG_DEBUG with LOG_DEBUG_FMT

* Simplify string-only logs

* Another batch of renames

* Replace in keypair.h

* Include ostream.h - we defined operator<< and want to use it

* Clarify comments

* Replace in kv.h

* Replacements in rpcconnections.h

* Replacements in nodeconnections.h

* Final pass on LOG_FAILs

* Add missing brackets noticed in review
2019-06-19 17:51:45 +01:00
Felix Schuster 452d8e5ade Fix sensitive table name in gov.lua (#173)
* fix naming and add test

* tests pass

* clang format
2019-06-19 13:49:24 +01:00
Amaury Chamayou b91e856ee8
Tests without sgx (#175) 2019-06-19 11:35:56 +01:00
Eddy Ashton 6501a2a35e
Update contributing guide and OpenEnclave links (#174)
* Add description of CI + static_checks to CONTRIBUTING

* Update links to OpenEnclave repo
2019-06-19 10:31:08 +01:00
Eddy Ashton 7665746ab1
Harden Lua handler API (#172)
* Proof of concept

* Replace tests of __default handlers, fix formatting

* Clarify names

* Obsessive formatting

* Remove lua's DEFAULT_HANDLER and references to it

* Add tests we'd like to pass

* Avoid copies in push_raw args

* Add stub push_raw for RequestArgs

* Implement push_raw for RequestArgs

* Lua nil should become json null

* A passing test

* All tests take args table

* Don't hide logging_client errors, check_returncode

* Update logging.lua to new API

* Obsessive formatting

* Whitespace

* Whitespace

* Update docs

* Typo
2019-06-19 09:20:26 +01:00
Eddy Ashton 82538b13c1
Remove special lua __default script (#169)
* Proof of concept

* Replace tests of __default handlers, fix formatting

* Clarify names

* Obsessive formatting

* Remove lua's DEFAULT_HANDLER and references to it

* Tweak docs
2019-06-18 16:14:21 +01:00
Julien Maffre 2033426b31
CCF + PBFT in real enclave (#171) 2019-06-18 15:20:31 +01:00
olgavrou ee42d1bc53
option to format cpp files on check (#170) 2019-06-18 14:54:08 +01:00
olgavrou 81210e0302
no need to cast data (#167) 2019-06-17 17:19:09 +01:00
Roy Schuster 7c09e1ec4e
RPC support for adding nodes (#142)
* Added the "add_node" RPC
* Adding a node also inserts its certificate to the node certificates table
2019-06-17 14:03:22 +01:00
Amaury Chamayou 7e3d6e4f7c
Update logging_lua.rst (#165) 2019-06-17 10:07:25 +01:00
Eddy Ashton 395e1b05cc
Remove jsonrpc::success() (#164)
* No success without an argument

* Make it clear that JoinNetwork gets an async response

* return json::success(true);

* Expect truth

* luA luI

* Make logging.lua consistent with logging.cpp

* KO OK
2019-06-17 09:30:56 +01:00
Eddy Ashton 6910e55b7d
Params are optional (#162)
* Avoid indexed lookup in const json, allowing missing but not null params

* Fix membervoting_test
2019-06-14 16:53:11 +01:00
Eddy Ashton 3ca4304db1
Choose iterations of signed small bank perf tests depending on curve (#160)
* Separate lines

* Separate files for 2k and 50k signed smallbank transctions

* Choose iterations by curve
2019-06-14 13:10:57 +01:00
Amaury Chamayou a112a86e22
Send SIGTERM to cchost if parent dies (#158) 2019-06-14 10:56:35 +01:00