Skip to content

Commit

Permalink
Merge pull request #60 from coinbase/patrick/timestamp-start-index
Browse files Browse the repository at this point in the history
Add timestamp_start_index
  • Loading branch information
patrick-ogrady authored Oct 19, 2020
2 parents 8d01572 + 6667d05 commit 5d91fdf
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
8 changes: 7 additions & 1 deletion api.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"openapi":"3.0.2",
"info": {
"version":"1.4.5",
"version":"1.4.6",
"title":"Rosetta",
"description":"Build Once. Integrate Your Blockchain Everywhere.",
"license": {
Expand Down Expand Up @@ -1154,6 +1154,12 @@
"type":"boolean",
"description":"Any Rosetta implementation that supports querying the balance of an account at any height in the past should set this to true."
},
"timestamp_start_index": {
"type":"integer",
"format":"int64",
"minimum": 0,
"description":"If populated, `timestamp_start_index` indicates the first block index where block timestamps are considered valid (i.e. all blocks less than `timestamp_start_index` could have invalid timestamps). This is useful when the genesis block (or blocks) of a network have timestamp 0. If not populated, block timestamps are assumed to be valid for all available blocks."
},
"call_methods": {
"type":"array",
"description":"All methods that are supported by the /call endpoint. Communicating which parameters should be provided to /call is the responsibility of the implementer (this is en lieu of defining an entire type system and requiring the implementer to define that in Allow).",
Expand Down
2 changes: 1 addition & 1 deletion api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

openapi: 3.0.2
info:
version: 1.4.5
version: 1.4.6
title: Rosetta
description: |
Build Once. Integrate Your Blockchain Everywhere.
Expand Down
13 changes: 13 additions & 0 deletions models/Allow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,19 @@ properties:
description: |
Any Rosetta implementation that supports querying the balance
of an account at any height in the past should set this to true.
timestamp_start_index:
type: integer
format: int64
minimum: 0
description: |
If populated, `timestamp_start_index` indicates the first block index
where block timestamps are considered valid (i.e. all blocks
less than `timestamp_start_index` could have invalid timestamps).
This is useful when the genesis block (or blocks) of a network
have timestamp 0.
If not populated, block timestamps are assumed to be valid for
all available blocks.
call_methods:
type: array
description: |
Expand Down

0 comments on commit 5d91fdf

Please sign in to comment.