Blockchain -Corda框架研究一 sendfile-Attachments学习笔记

Corda 4 文件上传例子

 

需要首先执行build 命令 

build成功后执行 

./gradlew deployNodes
./build/nodes/runnodes

将会出现3个节点 

 

 

 

 

三个节点正常执行 

在seller节点执行 

flow start SendAttachment receiver: Buyer
  1. uploading a zip file to Seller's node
  2. sending the zip file to Buyer's node

 

 

Buyer 节点执行 

flow start DownloadAttachment sender: Seller, path: file.zip

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章