|
@@ -201,7 +201,7 @@ public class CommonTest {
|
|
|
@Test
|
|
@Test
|
|
|
public void testIPFS() throws IOException {
|
|
public void testIPFS() throws IOException {
|
|
|
IPFS ipfs = new IPFS("121.40.132.44", 5001);
|
|
IPFS ipfs = new IPFS("121.40.132.44", 5001);
|
|
|
- NamedStreamable.FileWrapper file1 = new NamedStreamable.FileWrapper(new File("/Users/drew/Desktop/截屏2021-10-19 上午11.22.10.png"));
|
|
|
|
|
|
|
+ NamedStreamable.FileWrapper file1 = new NamedStreamable.FileWrapper(new File("/Users/drew/Desktop/截屏2021-10-14 下午5.09.58.png"));
|
|
|
MerkleNode put = ipfs.add(file1).get(0);
|
|
MerkleNode put = ipfs.add(file1).get(0);
|
|
|
Multihash multihash = ipfs.pin.add(put.hash).get(0);
|
|
Multihash multihash = ipfs.pin.add(put.hash).get(0);
|
|
|
System.out.println(put.hash.toBase58());
|
|
System.out.println(put.hash.toBase58());
|