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

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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