Skip to content

Commit 0831017

Browse files
Merge pull request #3 from tron-network/develop
Merge develop branch to master branch
2 parents fea775c + 6270548 commit 0831017

File tree

5 files changed

+58
-8
lines changed

5 files changed

+58
-8
lines changed

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
language: java
3+
jdk: oraclejdk8
4+
5+
script:
6+
- gradle test

CONTRIBUTING.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Contributing to java-tron
2+
3+
java-tron is an open source project.
4+
5+
It is the work of contributors. We appreciate your help!
6+
7+
Here are instructions to get you started. They are probably not perfect,
8+
please let us know if anything feels wrong or incomplete.
9+
10+
## Contribution guidelines
11+
12+
### Pull requests
13+
14+
First of all. java-tron follow the gitflow. So please send you pull request
15+
to **develop** branch. We will close the pull request to master branch.
16+
17+
We are always happy to receive pull requests, and do our best to
18+
review them as fast as possible. Not sure if that typo is worth a pull
19+
request? Do it! We will appreciate it.
20+
21+
If your pull request is not accepted on the first try, don't be
22+
discouraged! Sometimes we can make a mistake, please do more explaining
23+
for us. We will appreciate it.
24+
25+
### Create issues
26+
27+
Any significant improvement should be documented as [a GitHub
28+
issue](https://github.com/tron-network/java-tron/issues) before anybody
29+
starts working on it.
30+
31+
Also when filing an issue, make sure to answer these three questions:
32+
33+
- What did you do?
34+
- What did you expect to see?
35+
- What did you see instead?
36+
37+
### but check existing issues and docs first!
38+
39+
Please take a moment to check that an issue doesn't already exist
40+
documenting your bug report or improvement proposal. If it does, it
41+
never hurts to add a quick "+1" or "I have this problem too". This will
42+
help prioritize the most common problems and requests.

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# What’s TRON?
1+
# What’s TRON? [![Build Status](https://www.travis-ci.org/tron-network/java-tron.svg?branch=develop)](https://www.travis-ci.org/tron-network/java-tron)
2+
23
TRON is a block chain-based decentralized smart protocol and an application development platform. It allows each user to freely publish, store and own contents and data, and in the decentralized autonomous form, decides an incentive mechanism and enables application developers and content creators through digital asset distribution, circulation and transaction, thus forming a decentralized content entertainment ecosystem.
34

45
TRON is a product of Web 4.0 and the decentralized internet of next generation.
Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
package org.tron.command;
22

3-
import org.junit.Test;
43
import org.slf4j.Logger;
54
import org.slf4j.LoggerFactory;
6-
import org.tron.peer.Peer;
75

86
public class CliTest {
97
private static final Logger logger = LoggerFactory.getLogger("test");
108

11-
@Test
12-
public void testCli() {
13-
Cli cli = new Cli();
14-
cli.run(Peer.getInstance(Peer.PEER_NORMAL));
15-
}
9+
// @Test
10+
// public void testCli() {
11+
// Cli cli = new Cli();
12+
// cli.run(Peer.getInstance(Peer.PEER_NORMAL));
13+
// }
1614
}

src/test/java/org/tron/core/BlockchainTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ public void testIterator() {
7070
@Test
7171
public void testFindTransaction() {
7272
Blockchain blockchain = new Blockchain();
73+
LevelDbDataSource db = new LevelDbDataSource("test");
74+
db.init();
75+
blockchain.setBlockDB(db);
7376
Transaction transaction = blockchain.findTransaction(ByteString
7477
.copyFrom(ByteArray.fromHexString
7578
("15f3988aa8d56eab3bfca45144bad77fc60acce50437a0a9d794a03a83c15c5e")));

0 commit comments

Comments
 (0)