Docker images for Tronscan.org
API •
Docker scripts for Tronscan
API •
@nrz77 please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
@microsoft-github-policy-service agree [company="{your company}"]
Options:
- (default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.
- (when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.
This Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
and conveys certain license rights to Microsoft Corporation and its affiliates (“Microsoft”) for Your
contributions to Microsoft open source projects. This Agreement is effective as of the latest signature
date below.
Originally posted by @microsoft-github-policy-service in microsoft/onnxruntime#13730 (comment)
Issue
Submitting a GET request to http://127.0.0.1:9000/api/transfer... Returns an empty object.
Submitting the exact same request to https://api.tronscan.org/api/transfer... returns the correct object
Submitting any other request locally such as http://127.0.0.1/api/block/latest returns the correct object
yaml configuration. Changing node IPs doesn't make any difference
`version: '3.1'
services:
tronscan:
image: tronscan/api:latest
ports:
- "9000:9000"
environment:
NODE_FULL_IP: "52.56.56.149"
NODE_FULL_PORT: "50051"
NODE_SOLIDITY_IP: "34.250.140.143"
NODE_SOLIDITY_PORT: "50051"
ENABLE_SYNC: "false"
ENABLE_NETWORK_SCANNER: "true"
SECRET_KEY: "XXXXXXXXX"
redis:
image: redis:4.0
pgsql:
image: tronscan/db:latest`
There is nothing logged in the docker output window when this occurs however there are some other repeating errors. Please see the example below.
tronscan_1 | [error] i.g.i.ManagedChannelImpl - *~*~*~ Channel io.grpc.internal.ManagedChannelImpl-59753 for target 35.231.191.216:50051 was not shutdown properly!!! ~*~*~* tronscan_1 | Make sure to call shutdown()/shutdownNow() and awaitTermination(). tronscan_1 | [error] i.g.i.ManagedChannelImpl - *~*~*~ Channel io.grpc.internal.ManagedChannelImpl-69370 for target 35.232.78.22:50051 was not shutdown properly!!! ~*~*~* tronscan_1 | Make sure to call shutdown()/shutdownNow() and awaitTermination(). tronscan_1 | java.lang.RuntimeException: ManagedChannel allocation site tronscan_1 | at io.grpc.internal.ManagedChannelImpl$ManagedChannelReference.<init>(ManagedChannelImpl.java:1185) tronscan_1 | at io.grpc.internal.ManagedChannelImpl.<init>(ManagedChannelImpl.java:504) tronscan_1 | at io.grpc.internal.AbstractManagedChannelImplBuilder.build(AbstractManagedChannelImplBuilder.java:369) tronscan_1 | at org.tronscan.grpc.GrpcPool.$anonfun$requestChannel$1(GrpcPool.scala:28) tronscan_1 | at scala.collection.MapLike.getOrElse(MapLike.scala:128) tronscan_1 | at scala.collection.MapLike.getOrElse$(MapLike.scala:126) tronscan_1 | at scala.collection.AbstractMap.getOrElse(Map.scala:59) tronscan_1 | at org.tronscan.grpc.GrpcPool.requestChannel(GrpcPool.scala:25) tronscan_1 | at org.tronscan.grpc.GrpcPool$$anonfun$receive$1.applyOrElse(GrpcPool.scala:44) tronscan_1 | at akka.actor.Actor.aroundReceive(Actor.scala:517)
`PS C:\Users\neuromesh> Invoke-RestMethod -Method GET -uri http://127.0.0.1:9000/api/transfer?block=2065654
total data
0 {}
PS C:\Users\neuromesh> Invoke-RestMethod -Method GET -uri https://api.tronscan.org/api/transfer?block=2065654
total data
0 {@{id=8346c32d-f925-4a2c-a35d-adb472ed28e8; transactionHash=057bde2129b051234d23b11b8ae0c63ac1944abd17619062eb280ef9006d16fd; block=206565...
PS C:\Users\s881628> Invoke-RestMethod -Method GET -uri http://127.0.0.1:9000/api/transfer?hash=057bde2129b051234d23b11b8ae0c63ac1944abd17619062eb280ef9006d16fd
total data
0 {}
PS C:\Users\neuromesh> Invoke-RestMethod -Method GET -uri https://api.tronscan.org/api/transfer?hash=057bde2129b051234d23b11b8ae0c63ac1944abd17619062eb280ef9006d16fd
total data
0 {@{id=8346c32d-f925-4a2c-a35d-adb472ed28e8; transactionHash=057bde2129b051234d23b11b8ae0c63ac1944abd17619062eb280ef9006d16fd; block=206565...
PS C:\Users\neuromesh> Invoke-RestMethod -Method GET -uri http://127.0.0.1:9000/api/block/latest
number : 2065864
hash : 00000000001f85c826ac5a77f5896b8aba2a44496e03751e071c146d7d451a6e
size : 1458
timestamp : 1536103137000
txTrieRoot : 22GGkX6fhyjUBo2d4QM38wEzN2BYsM2asrTaprzKYmfRpryDLj
parentHash : 00000000001f85c75ce086dbc9095b968acf54eb9c4c8e9e52aa3eaa9e246f1a
witnessId : 0
witnessAddress : TTcYhypP8m4phDhN6oRexz2174zAerjEWP
nrOfTrx : 6
confirmed : False`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.