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
|**Release**| Seller | Condition fulfilled (e.g., goods delivered) | Funds transfer to seller |
158
+
|**Refund**| Buyer | Condition not met or cancelled | Funds return to buyer |
159
+
160
+
### Release vs Refund
161
+
162
+
-**Release** (`releaseEscrow`): Seller provides correct `secret + parcelId` to prove fulfillment. Funds move from buyer's escrow balance to seller's available balance. Status → `Released`.
163
+
164
+
-**Refund** (`refundEscrow`): Buyer cancels an active escrow. No secret needed. Funds return to buyer's available balance. Status → `Refunded`.
165
+
166
+
Both operations only work on `Active` escrows.
167
+
168
+
## Troubleshooting
169
+
170
+
**Network already running?**
171
+
If your Fabric test-network is already up, comment out the `network.sh down` and `network.sh up` lines in `test.sh` to avoid restarting it:
172
+
173
+
```bash
174
+
# In test.sh, comment these lines:
175
+
# run_cmd "./network.sh down" "Bringing down network"
176
+
# run_cmd "./network.sh up createChannel -ca" "Starting network"
0 commit comments