You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+41-1Lines changed: 41 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ TRON Protocol and the TVM allow anyone to develop DAPPs for themselves or their
63
63
* JDK 1.8 (JDK 1.9+ are not supported yet)
64
64
* On Linux Ubuntu system (e.g. Ubuntu 16.04.4 LTS), ensure that the machine has [__Oracle JDK 8__](https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-get-on-ubuntu-16-04), instead of having __Open JDK 8__ in the system. If you are building the source code by using __Open JDK 8__, you will get [__Build Failed__](https://github.com/tronprotocol/java-tron/issues/337) result.
65
65
66
-
## Getting the code
66
+
## Getting the code with git
67
67
68
68
* Use Git from the Terminal, see the [Setting up Git](https://help.github.com/articles/set-up-git/) and [Fork a Repo](https://help.github.com/articles/fork-a-repo/) articles.
69
69
* develop branch: the newnest code
@@ -78,6 +78,42 @@ git checkout -t origin/master
78
78
79
79
* If you'd rather not use Git, [Download the ZIP](https://github.com/tronprotocol/java-tron/archive/develop.zip)
80
80
81
+
## Including java-tron as dependency
82
+
83
+
* If you don't want to checkout the code and build the project, you can include it directly as a dependency
As shown in the example above, the data of database `accout` will be stored in the path of `/path/to/accout/database` while the index be stored in `/path/to/accout/index`. And, the example also shows our default value of LevelDB options from `createIfMissing` to `maxOpenFiles`. You can just refer to the docs of [LevelDB](https://github.com/google/leveldb/blob/master/doc/index.md#performance) to figure out details of these options.
47
+
48
+
## gRPC
49
+
50
+
You can custom gPRC options in the `node.rpc` part of `config.conf`, which looks like:
51
+
52
+
```
53
+
node {
54
+
rpc {
55
+
port = 50051
56
+
57
+
# Number of gRPC thread, default availableProcessors / 2
58
+
# thread = 16
59
+
60
+
# The maximum number of concurrent calls permitted for each incoming connection
61
+
# maxConcurrentCallsPerConnection =
62
+
63
+
# The HTTP/2 flow control window, default 1MB
64
+
# flowControlWindow =
65
+
66
+
# Connection being idle for longer than which will be gracefully terminated
67
+
maxConnectionIdleInMillis = 60000
68
+
69
+
# Connection lasting longer than which will be gracefully terminated
70
+
# maxConnectionAgeInMillis =
71
+
72
+
# The maximum message size allowed to be received on the server, default 4MB
73
+
# maxMessageSize =
74
+
75
+
# The maximum size of header list allowed to be received, default 8192
76
+
# maxHeaderListSize =
77
+
}
78
+
}
79
+
```
80
+
81
+
You may refer to the source code of `io.grpc.netty.NettyServerBuilder` class to see details or just make a decision according to the brief comments above.
0 commit comments