-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement new REST API: GET /colors/ #33
Conversation
78967d0
to
ef4a407
Compare
@@ -36,8 +36,8 @@ page_size = "0.4.2" | |||
prometheus = "0.11.0" | |||
openassets-tapyrus = "^0.2.4" | |||
rayon = "1.5.0" | |||
rocksdb = { version = "0.15.0", optional = true } | |||
rocksdb-oldcpu = { version = "0.12.4", optional = true, package = "rocksdb" } | |||
rocksdb = { version = "^0.22.0", optional = true } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
最新のmacOS環境でビルドが通らなかったため、アップデート
@@ -26,7 +26,7 @@ impl<'a> Iterator for ScanIterator<'a> { | |||
if self.done { | |||
return None; | |||
} | |||
let (key, value) = self.iter.next()?; | |||
let (key, value) = self.iter.next()?.ok()?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
最新のmacOS環境(rust: 1.76.0)でビルドが通らなかったため、修正
ちなみに、この実装だとすでに運用中のesplora-tapyrusがある場合は、データを削除してインデックスを作り直す必要があります。テストネットの場合だとインデックスの再作成に、現状20分以上は必要です。 |
…in descending order of block_height use
48864d2
to
35f122f
Compare
35f122f
to
4f17079
Compare
doc/API.md
Outdated
@@ -227,6 +227,13 @@ For example: `{ "1": 87.882, "2": 87.882, "3": 87.882, "4": 87.882, "5": 81.129, | |||
|
|||
## Tokens | |||
|
|||
### `GET /colors[/:last_seen_color_id]` | |||
|
|||
Returns a list of the 25 (`color_id`, `block_height`) pairs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
他に、chain_stats
とmempool_stats
も含まれているようなので、それぞれ何を指すか説明を追記してください。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
5b40145 で追記してます
Implement new REST API
GET /colors/[:last_seen_color_id]
chaintope/tapyrus-explorer#55