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
Copy file name to clipboardExpand all lines: block-chain/BlockChainCore/BlockChain.cs
+6-1
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,11 @@ public IBlock CreateBlock(string data)
28
28
returnblock;
29
29
}
30
30
31
+
/// <summary>
32
+
/// Adds an existing block to the blockchain.
33
+
/// </summary>
34
+
/// <param name="block">The block to be added.</param>
35
+
/// <exception cref="InvalidOperationException">Thrown when the block's previous hash does not match the hash of the last block in the blockchain.</exception>
0 commit comments