Skip to content

Commit 75d3fdb

Browse files
authored
Merge pull request #2472 from nervosnetwork/develop
Deploy to testnet
2 parents 4f7afab + a83b65d commit 75d3fdb

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

app/models/fiber_graph_node.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ def deleted_at_timestamp
4646

4747
(deleted_at.to_f * 1000).to_i.to_s
4848
end
49+
50+
def created_timestamp
51+
(created_at.to_f * 1000).to_i.to_s
52+
end
4953
end
5054

5155
# == Schema Information

app/views/api/v2/fiber/graph_nodes/index.jbuilder

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
json.data do
22
json.fiber_graph_nodes @nodes do |node|
3-
json.(node, :node_name, :node_id, :addresses, :peer_id, :timestamp, :chain_hash, :connected_node_ids, :open_channels_count, :last_updated_timestamp, :deleted_at_timestamp)
3+
json.(node, :node_name, :node_id, :addresses, :peer_id, :timestamp, :chain_hash, :connected_node_ids, :open_channels_count,
4+
:last_updated_timestamp, :deleted_at_timestamp, :created_timestamp)
45
json.timestamp node.timestamp.to_s
56
json.auto_accept_min_ckb_funding_amount node.auto_accept_min_ckb_funding_amount.to_s
67
json.total_capacity node.total_capacity.to_s

app/views/api/v2/fiber/graph_nodes/show.jbuilder

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
json.data do
2-
json.(@node, :node_name, :node_id, :addresses, :peer_id, :timestamp, :chain_hash, :connected_node_ids, :last_updated_timestamp, :deleted_at_timestamp)
2+
json.(@node, :node_name, :node_id, :addresses, :peer_id, :timestamp, :chain_hash, :connected_node_ids, :last_updated_timestamp,
3+
:deleted_at_timestamp, :created_timestamp)
34
json.timestamp @node.timestamp.to_s
45
json.auto_accept_min_ckb_funding_amount @node.auto_accept_min_ckb_funding_amount.to_s
56
json.total_capacity @node.total_capacity.to_s

0 commit comments

Comments
 (0)