Commit Graph

115 Commits

Author SHA1 Message Date
Pierre Chambart
56936c7a1e
Add sync test option 2018-11-22 19:06:19 +01:00
Vincent Botbol
3405231a1f
Resto: decode uri before converting the path 2018-10-17 15:06:34 +02:00
Pietro Abate
000b9af6f9
vendors,hacl: use more generic gcc options
Tentative fix for "Illegal instruction (core dumped)" on certain
architectures du to gcc over optimization. This can possibly
introduce a performance regression.

@chambart for his gbd-foo skills
2018-10-11 18:36:35 +02:00
Vincent Bernardoff
50f367e27b
Vendors/ledgerwallet: curve parsers and pretty-printers 2018-10-04 15:28:21 +02:00
Vincent Bernardoff
9ce0018506
Ledger: match error codes with V1.4.0 2018-10-03 14:08:39 +02:00
Vincent Bernardoff
4bb28cd285
Ledger: implement authorized-path APDU 2018-10-03 14:08:39 +02:00
Vincent Bernardoff
92715a005b
Ledger: implement git-commit APDU 2018-10-03 14:08:37 +02:00
Pierre Chambart
43bf1b4cc4
Storage: better use of LMDB transactions for better perf and to force sync at commit
Review and edit by @klalplok, @vbot, @samoht.
2018-09-28 15:12:01 +02:00
Pierre Chambart
09bf4e4819
Store and Context: open the database with the nometasync flag
This mode maintains the coherency of the database in case of crash,
but can drop the last commits. This is not a problem for us since
every data is recoverable.
2018-09-24 20:29:58 +02:00
Pierre Chambart
bfeff69794 Vendors/lmdb: Change the default sync flags
The default was unsafe but fast, we change that to the safe version.
2018-09-24 18:19:22 +00:00
Sebastien Mondet
39e8c4f6b5
Fix typo in Baking app name 2018-09-24 20:15:25 +02:00
Sebastien Mondet
b329b604a7
Improve display of Ledger apps names/versions 2018-09-24 20:15:25 +02:00
Vincent Botbol
04cd08f13f
Hotfix: print unhandled cases 2018-09-24 19:43:41 +02:00
Pierre Chambart
bde9ba771b
Irmin_lmdb: Add NoReadahead flag to lmdb open 2018-09-12 14:58:44 +02:00
Arthur B
7206ccd560
Indentation fixes 2018-08-31 15:46:56 +02:00
Vincent Bernardoff
b9eba66b4c
Vendors/BIP39: drop nocrypto, use new pbkdf 2018-08-20 11:56:36 +02:00
Vincent Bernardoff
5294a144b1
Vendors/Pbkdf: drop nocrypto 2018-08-20 11:56:35 +02:00
Vincent Bernardoff
a224c80462
Hacl: refactoring 2018-08-20 11:56:35 +02:00
Vincent Bernardoff
928ee9d3a0
Hacl: add HMAC_SHA512 2018-08-20 11:56:34 +02:00
Vincent Bernardoff
a3cfcc091a
Hacl: expose hashing constants 2018-08-20 11:56:33 +02:00
Vincent Bernardoff
1a93df75ae
Hacl: refactoring 2018-08-20 11:56:30 +02:00
Pietro Abate
326f7d6f5e
Vendors: Fix compilation warning in LMDB (close #329) 2018-08-20 10:58:17 +02:00
Vincent Bernardoff
4a436c2f18
Vendors/lmdb: add CFLAGS 2018-08-09 21:09:11 +02:00
Vincent Bernardoff
ccc61dbbc4 Vendors/lmdb: fixes in OCaml stubs 2018-08-09 18:32:21 +00:00
Vincent Bernardoff
2a4c6762a7 Vendors/lmdb: upgrade to latest version 2018-08-09 18:32:21 +00:00
Grégoire Henry
87e0de9826 Dune: use the new syntax 2018-08-01 10:52:24 +02:00
Grégoire Henry
5362b321d9 Dune: rename s/jbuild/dune/ 2018-08-01 10:32:12 +02:00
Pietro
c7cfdcb4d9 [Doc]: Fix minor warnings and errors in the doc 2018-07-25 15:58:38 +02:00
Pietro
b89682e441 Build: Jbuilder -> Dune 1.0.1 2018-07-24 19:15:04 +02:00
Benjamin Canou
a0b94cff2b Resto: automatically retry a few times on 502 gateway errors 2018-07-06 23:28:33 +02:00
Pierre Boutillier
140bd6b1ca Tezos is now Open Source 2018-06-30 17:41:32 +02:00
Vincent Botbol
85cac4282c Irmin_lmdb: make sure we open the file with consistent rights 2018-06-29 17:50:17 +02:00
Vincent Bernardoff
aceee178e1 Vendors: upgrade ocaml-ledger-wallet
* Use result instead of exceptions
* Support newer versions of the companion Tezos/TezBake Ledger apps
2018-06-29 01:43:29 +00:00
Benjamin Canou
1f213b385b Vendors/Resto: allow client to send host header 2018-06-27 22:57:02 +02:00
Marco Stronati
509a8a801a hacl: quick fix to compile on aarch64 2018-06-25 13:22:09 +00:00
Benjamin Canou
daaaf75e67 Vendors/Resto: allow passing custom headers in requests 2018-06-21 18:03:14 +02:00
Benjamin Canou
a838f5d55c Fix OPAM dependencies 2018-06-19 04:00:09 +02:00
Grégoire Henry
0a71db1652 Opam: upgrade to irmin-1.4.0 2018-06-18 11:39:37 +00:00
Vincent Bernardoff
3a2a11d888 Vendors: import ocaml-ledger-wallet 2018-06-16 16:26:19 +02:00
Vincent Bernardoff
68330036a1 Crypto: add test vectors for P256 2018-06-13 23:59:16 +00:00
Pierre Boutillier
0addf499c5 Remove assembly code from uECC 2018-06-13 23:59:16 +00:00
Vincent Bernardoff
9d18f7846d Crypto: disable P256 signing 2018-06-13 23:59:16 +00:00
Vincent Bernardoff
7df49b62e1 Crypto: import uecc 2018-06-13 23:59:16 +00:00
vbotbol
e314ac635d Storage: add readonly option 2018-06-13 01:00:47 +02:00
Vincent Bernardoff
a726d7363b Opam: remove irmin-leveldb 2018-06-13 00:55:37 +02:00
Vincent Bernardoff
be459ef312 Vendors: import irmin-lmdb 2018-06-13 00:55:36 +02:00
Vincent Bernardoff
cbef4c4d0c Vendors: import ocaml-lmdb 2018-06-13 00:55:36 +02:00
Grégoire Henry
5fd5c1c5f7 Dune: upgrade to 1.0+beta20 2018-06-08 15:27:23 +00:00
Pierre Boutillier
330b670d59 Test a sequence of update in Hash.SHA256 2018-06-06 15:33:22 +02:00
Grégoire Henry
33c3d1fcbd Alpha/RPC: add a low-level but typed RPC for context introspection
Example:

```
> tezos-client rpc get /chains/main/blocks/head/context/raw/json/\?depth\=1 | jq
{
  "commitments": [],
  "contracts": {
    "global_counter": 0,
    "index": []
  },
  "cycle": [
    4,
    3,
    2,
    1,
    0
  ],
  "delegates": [
    "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN",
    "tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU",
    "tz1ddb9NMYHZi5UzPdzTZMYQQZoMub195zgv",
    "tz1b7tUupMgCNw2cCLpKTkSD1NZzB5TkP2sv",
    "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx"
  ],
  "last_block_priority": 0,
  "rolls": {
    "index": [],
    "next": 2000,
    "owner": {}
  },
  "votes": {
    "ballots": [],
    "current_period_kind": "proposal",
    "current_quorum": 8000,
    "listings": [],
    "proposals": []
  }
}
> tezos-client rpc get /chains/main/blocks/head/context/raw/json/cycle/4\?depth\=2 | jq
{
  "last_roll": [
    [
      0,
      2000
    ]
  ],
  "nonces": [],
  "random_seed": "97d50852c159ada8e9f107e98f693b059ba28336c723e6cd0f6353eb3c0cb415",
  "roll_snapshot": 0
}
> tezos-client rpc get /chains/main/blocks/head/context/raw/json/cycle/5\?depth\=2 | jq
{
  "last_roll": [
    [
      1,
      2000
    ],
    [
      0,
      2000
    ]
  ],
  "nonces": [],
  "roll_snapshot": 2
}
```
2018-06-06 10:54:33 +02:00