From e23be2c3ed3eca634a41d7966d9d73971eca7ced Mon Sep 17 00:00:00 2001 From: Xavier Perret <xa.perret@outlook.com> Date: Wed, 9 Nov 2022 16:25:17 +0100 Subject: [PATCH] bim --- lab1/README.md | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/lab1/README.md b/lab1/README.md index ccc326f..fd86890 100644 --- a/lab1/README.md +++ b/lab1/README.md @@ -23,26 +23,22 @@ it to neighbours instead on manually entering an ip. ### Server -#### Root Server -To lauch the server to which you wish to send commands using the client you need to do - -```bash -go server.go --config=neighbor-x.yaml --root -``` - -#### Normal Server To launch the other server you need to run the following command: ```bash go server.go --config=neighbor-x.yaml ``` +#### Note + +- It is possible to print transactions from the cli on the server +- It is possible to directly fake a transaction from the cli on the server +- All these functionalities can be triggered by the client, but fake for example will not ask the client for anything + except the id of the transaction to fake + ### Functionalities -- Able to create a transaction from the client and then request to root server to broadcast by wave to all the other servers -- Able to send a rate request from client to root server then broadcast by wave to all the other servers -- Able to fake a transaction on a node by using its command line -- Able to print all local transaction from any server or client on a node by using its command line +- All functionalities have been implemented and work with the current network without problems. ### Object Storage Module @@ -50,8 +46,9 @@ go server.go --config=neighbor-x.yaml - Go 1.14 - Azure CLI -- Azure Storage Account configured (like <https://learn.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-go>) - - For testing you need to change the "hepiadistributedsystems" by the storage account name +- Azure Storage Account configured ( + like <https://learn.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-go>) + - For testing you need to change the "hepiadistributedsystems" by the storage account name ```go azureCreds := InitAzureCredentials("hepiadistributedsystems") ``` @@ -62,7 +59,7 @@ go server.go --config=neighbor-x.yaml - `test.go` : Contains the main function to launch the tests - `object-storage/object-storage.go` : Contains the functions to interact with the object storage and the test function - `types/datastructures.go` : Contains the datastructure useful for this lab (transactions, object storage, ...) - + ##### Methods Description ```go @@ -123,7 +120,8 @@ Initialize a container with the given containerName and returns it (to create/de func InitializeBlob(blobName string, azureCreds AzureCredentials, containerName string, containerClient azblob.ContainerClient) azblob.BlockBlobClient ``` -Initialize a blob/file (for upload/download) with the given blobName and returns an object to interact with it (write/read data). +Initialize a blob/file (for upload/download) with the given blobName and returns an object to interact with it ( +write/read data). ```go func ListBlobs(blob Blob) -- GitLab