Tennessee Gibbs 6 gadus atpakaļ
vecāks
revīzija
636c668138

+ 208
- 161
.idea/workspace.xml Parādīt failu

@@ -3,6 +3,7 @@
3 3
   <component name="ChangeListManager">
4 4
     <list default="true" id="86492085-3833-4394-8353-122bd8bc6cb0" name="Default" comment="">
5 5
 <<<<<<< HEAD
6
+<<<<<<< HEAD
6 7
       <change beforePath="$PROJECT_DIR$/application.log" beforeDir="false" afterPath="$PROJECT_DIR$/application.log" afterDir="false" />
7 8
       <change beforePath="$PROJECT_DIR$/src/main/java/com/buecoin01/ProcessLoader.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/buecoin01/ProcessLoader.java" afterDir="false" />
8 9
       <change beforePath="$PROJECT_DIR$/src/main/java/com/buecoin01/controller/WalletController.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/buecoin01/controller/WalletController.java" afterDir="false" />
@@ -12,6 +13,24 @@
12 13
 =======
13 14
       <change beforePath="$PROJECT_DIR$/src/main/java/com/buecoin01/model/Transactions.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/buecoin01/model/Transactions.java" afterDir="false" />
14 15
 >>>>>>> 8f54c3eecc5bed7d04144a96ce991b00bf0a29ef
16
+=======
17
+      <change afterPath="$PROJECT_DIR$/src/main/java/com/buecoin01/controller/ConductTransactions.java" afterDir="false" />
18
+      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
19
+      <change beforePath="$PROJECT_DIR$/src/main/java/com/buecoin01/ProcessLoader.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/buecoin01/ProcessLoader.java" afterDir="false" />
20
+      <change beforePath="$PROJECT_DIR$/src/main/java/com/buecoin01/controller/TransactionController.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/buecoin01/controller/TransactionController.java" afterDir="false" />
21
+      <change beforePath="$PROJECT_DIR$/src/main/java/com/buecoin01/controller/WalletController.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/buecoin01/controller/WalletController.java" afterDir="false" />
22
+      <change beforePath="$PROJECT_DIR$/src/main/java/com/buecoin01/model/Block.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/buecoin01/model/Block.java" afterDir="false" />
23
+      <change beforePath="$PROJECT_DIR$/src/main/java/com/buecoin01/model/Transactions.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/buecoin01/model/Transactions.java" afterDir="false" />
24
+      <change beforePath="$PROJECT_DIR$/src/main/java/com/buecoin01/model/Wallet.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/buecoin01/model/Wallet.java" afterDir="false" />
25
+      <change beforePath="$PROJECT_DIR$/src/main/resources/application.properties" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/application.properties" afterDir="false" />
26
+      <change beforePath="$PROJECT_DIR$/target/classes/application.properties" beforeDir="false" afterPath="$PROJECT_DIR$/target/classes/application.properties" afterDir="false" />
27
+      <change beforePath="$PROJECT_DIR$/target/classes/com/buecoin01/ProcessLoader.class" beforeDir="false" afterPath="$PROJECT_DIR$/target/classes/com/buecoin01/ProcessLoader.class" afterDir="false" />
28
+      <change beforePath="$PROJECT_DIR$/target/classes/com/buecoin01/controller/TransactionController$UserController.class" beforeDir="false" />
29
+      <change beforePath="$PROJECT_DIR$/target/classes/com/buecoin01/controller/TransactionController.class" beforeDir="false" afterPath="$PROJECT_DIR$/target/classes/com/buecoin01/controller/TransactionController.class" afterDir="false" />
30
+      <change beforePath="$PROJECT_DIR$/target/classes/com/buecoin01/model/Block.class" beforeDir="false" afterPath="$PROJECT_DIR$/target/classes/com/buecoin01/model/Block.class" afterDir="false" />
31
+      <change beforePath="$PROJECT_DIR$/target/classes/com/buecoin01/model/Transactions.class" beforeDir="false" afterPath="$PROJECT_DIR$/target/classes/com/buecoin01/model/Transactions.class" afterDir="false" />
32
+      <change beforePath="$PROJECT_DIR$/target/classes/com/buecoin01/model/Wallet.class" beforeDir="false" afterPath="$PROJECT_DIR$/target/classes/com/buecoin01/model/Wallet.class" afterDir="false" />
33
+>>>>>>> 83b86f0a924ec01b4de5bc873174ce272b8219a1
15 34
     </list>
16 35
     <ignored path="$PROJECT_DIR$/target/" />
17 36
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
@@ -24,6 +43,7 @@
24 43
   <component name="FileEditorManager">
25 44
     <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
26 45
 <<<<<<< HEAD
46
+<<<<<<< HEAD
27 47
       <file leaf-file-name="Wallet.java" pinned="false" current-in-tab="false">
28 48
         <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/Wallet.java">
29 49
           <provider selected="true" editor-type-id="text-editor">
@@ -78,19 +98,27 @@
78 98
               <folding>
79 99
                 <element signature="imports" expanded="true" />
80 100
               </folding>
101
+=======
102
+      <file leaf-file-name="Application.java" pinned="false" current-in-tab="false">
103
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/Application.java">
104
+          <provider selected="true" editor-type-id="text-editor">
105
+            <state relative-caret-position="60">
106
+              <caret line="6" column="22" selection-start-line="6" selection-start-column="22" selection-end-line="6" selection-end-column="22" />
107
+>>>>>>> 83b86f0a924ec01b4de5bc873174ce272b8219a1
81 108
             </state>
82 109
           </provider>
83 110
         </entry>
84 111
       </file>
85
-      <file leaf-file-name="Block.java" pinned="false" current-in-tab="false">
86
-        <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/Block.java">
112
+      <file leaf-file-name="application.properties" pinned="false" current-in-tab="false">
113
+        <entry file="file://$PROJECT_DIR$/src/main/resources/application.properties">
87 114
           <provider selected="true" editor-type-id="text-editor">
88
-            <state relative-caret-position="28">
89
-              <caret line="24" column="16" lean-forward="true" selection-start-line="24" selection-end-line="25" />
115
+            <state relative-caret-position="15">
116
+              <caret line="1" selection-start-line="1" selection-end-line="1" />
90 117
             </state>
91 118
           </provider>
92 119
         </entry>
93 120
       </file>
121
+<<<<<<< HEAD
94 122
       <file leaf-file-name="Transactions.java" pinned="false" current-in-tab="true">
95 123
         <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/Transactions.java">
96 124
           <provider selected="true" editor-type-id="text-editor">
@@ -137,40 +165,31 @@
137 165
 =======
138 166
       <file leaf-file-name="Wallet.java" pinned="false" current-in-tab="false">
139 167
         <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/Wallet.java">
168
+=======
169
+      <file leaf-file-name="WalletController.java" pinned="false" current-in-tab="false">
170
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/controller/WalletController.java">
171
+>>>>>>> 83b86f0a924ec01b4de5bc873174ce272b8219a1
140 172
           <provider selected="true" editor-type-id="text-editor">
141
-            <state relative-caret-position="966">
142
-              <caret line="121" column="45" lean-forward="true" selection-start-line="121" selection-start-column="45" selection-end-line="121" selection-end-column="45" />
173
+            <state relative-caret-position="648">
174
+              <caret line="52" selection-start-line="52" selection-end-line="52" />
143 175
               <folding>
144 176
                 <element signature="imports" expanded="true" />
145
-                <element signature="e#925#926#0" expanded="true" />
146
-                <element signature="e#952#953#0" expanded="true" />
147
-                <element signature="e#992#993#0" expanded="true" />
148
-                <element signature="e#1024#1025#0" expanded="true" />
149
-                <element signature="e#1123#1124#0" expanded="true" />
150
-                <element signature="e#1156#1157#0" expanded="true" />
151
-                <element signature="e#1195#1196#0" expanded="true" />
152
-                <element signature="e#1227#1228#0" expanded="true" />
153
-                <element signature="e#1258#1259#0" expanded="true" />
154
-                <element signature="e#1287#1288#0" expanded="true" />
155
-                <element signature="e#1329#1330#0" expanded="true" />
156
-                <element signature="e#1365#1366#0" expanded="true" />
157
-                <element signature="e#1481#1482#0" expanded="true" />
158
-                <element signature="e#1521#1522#0" expanded="true" />
159
-                <element signature="e#1548#1549#0" expanded="true" />
160
-                <element signature="e#1573#1574#0" expanded="true" />
161
-                <element signature="e#1607#1608#0" expanded="true" />
162
-                <element signature="e#1635#1636#0" expanded="true" />
163 177
               </folding>
164 178
             </state>
165 179
           </provider>
166 180
         </entry>
167 181
       </file>
168
-      <file leaf-file-name="WalletController.java" pinned="false" current-in-tab="false">
169
-        <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/controller/WalletController.java">
182
+      <file leaf-file-name="ProcessLoader.java" pinned="false" current-in-tab="false">
183
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/ProcessLoader.java">
170 184
           <provider selected="true" editor-type-id="text-editor">
185
+<<<<<<< HEAD
171 186
             <state relative-caret-position="210">
172 187
               <caret line="14" lean-forward="true" selection-start-line="14" selection-end-line="14" />
173 188
 >>>>>>> 8f54c3eecc5bed7d04144a96ce991b00bf0a29ef
189
+=======
190
+            <state relative-caret-position="510">
191
+              <caret line="34" selection-start-line="34" selection-end-line="34" />
192
+>>>>>>> 83b86f0a924ec01b4de5bc873174ce272b8219a1
174 193
               <folding>
175 194
                 <element signature="imports" expanded="true" />
176 195
               </folding>
@@ -179,6 +198,7 @@
179 198
         </entry>
180 199
       </file>
181 200
 <<<<<<< HEAD
201
+<<<<<<< HEAD
182 202
       <file leaf-file-name="ProcessLoader.java" pinned="false" current-in-tab="false">
183 203
         <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/ProcessLoader.java">
184 204
           <provider selected="true" editor-type-id="text-editor">
@@ -187,9 +207,13 @@
187 207
 =======
188 208
       <file leaf-file-name="TransactionController.java" pinned="false" current-in-tab="false">
189 209
         <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/controller/TransactionController.java">
210
+=======
211
+      <file leaf-file-name="ConductTransactions.java" pinned="false" current-in-tab="true">
212
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/controller/ConductTransactions.java">
213
+>>>>>>> 83b86f0a924ec01b4de5bc873174ce272b8219a1
190 214
           <provider selected="true" editor-type-id="text-editor">
191
-            <state relative-caret-position="210">
192
-              <caret line="14" column="42" lean-forward="true" selection-start-line="14" selection-start-column="42" selection-end-line="14" selection-end-column="42" />
215
+            <state relative-caret-position="394">
216
+              <caret line="31" column="38" selection-start-line="31" selection-start-column="38" selection-end-line="31" selection-end-column="38" />
193 217
               <folding>
194 218
                 <element signature="imports" expanded="true" />
195 219
               </folding>
@@ -198,6 +222,7 @@
198 222
           </provider>
199 223
         </entry>
200 224
       </file>
225
+<<<<<<< HEAD
201 226
       <file leaf-file-name="Transaction.java" pinned="false" current-in-tab="false">
202 227
         <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/Transaction.java">
203 228
           <provider selected="true" editor-type-id="text-editor">
@@ -207,6 +232,13 @@
207 232
 =======
208 233
             <state relative-caret-position="639">
209 234
               <caret line="47" column="40" selection-start-line="47" selection-start-column="40" selection-end-line="47" selection-end-column="40" />
235
+=======
236
+      <file leaf-file-name="Transactions.java" pinned="false" current-in-tab="false">
237
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/Transactions.java">
238
+          <provider selected="true" editor-type-id="text-editor">
239
+            <state relative-caret-position="825">
240
+              <caret line="71" column="17" selection-start-line="71" selection-start-column="17" selection-end-line="71" selection-end-column="17" />
241
+>>>>>>> 83b86f0a924ec01b4de5bc873174ce272b8219a1
210 242
               <folding>
211 243
                 <element signature="imports" expanded="true" />
212 244
               </folding>
@@ -216,6 +248,7 @@
216 248
         </entry>
217 249
       </file>
218 250
 <<<<<<< HEAD
251
+<<<<<<< HEAD
219 252
       <file leaf-file-name="application.properties" pinned="false" current-in-tab="false">
220 253
         <entry file="file://$PROJECT_DIR$/src/main/resources/application.properties">
221 254
           <provider selected="true" editor-type-id="text-editor">
@@ -224,9 +257,13 @@
224 257
 =======
225 258
       <file leaf-file-name="TransactionRepository.java" pinned="false" current-in-tab="false">
226 259
         <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/Repositories/TransactionRepository.java">
260
+=======
261
+      <file leaf-file-name="Wallet.java" pinned="false" current-in-tab="false">
262
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/Wallet.java">
263
+>>>>>>> 83b86f0a924ec01b4de5bc873174ce272b8219a1
227 264
           <provider selected="true" editor-type-id="text-editor">
228
-            <state relative-caret-position="180">
229
-              <caret line="12" column="17" selection-start-line="12" selection-start-column="17" selection-end-line="12" selection-end-column="17" />
265
+            <state relative-caret-position="139">
266
+              <caret line="16" lean-forward="true" selection-start-line="16" selection-end-line="16" />
230 267
               <folding>
231 268
                 <element signature="imports" expanded="true" />
232 269
               </folding>
@@ -236,6 +273,7 @@
236 273
         </entry>
237 274
       </file>
238 275
 <<<<<<< HEAD
276
+<<<<<<< HEAD
239 277
       <file leaf-file-name="Application.java" pinned="false" current-in-tab="false">
240 278
         <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/Application.java">
241 279
           <provider selected="true" editor-type-id="text-editor">
@@ -252,14 +290,16 @@
252 290
           </provider>
253 291
         </entry>
254 292
       </file>
293
+=======
294
+>>>>>>> 83b86f0a924ec01b4de5bc873174ce272b8219a1
255 295
     </leaf>
256 296
   </component>
257 297
   <component name="FileTemplateManagerImpl">
258 298
     <option name="RECENT_TEMPLATES">
259 299
       <list>
260 300
         <option value="Interface" />
261
-        <option value="Class" />
262 301
         <option value="AnnotationType" />
302
+        <option value="Class" />
263 303
       </list>
264 304
     </option>
265 305
   </component>
@@ -291,19 +331,23 @@
291 331
 =======
292 332
         <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/Repositories/WalletRepository.java" />
293 333
         <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/controller/BlockController.java" />
294
-        <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/ProcessLoader.java" />
295 334
         <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/model/BlockchainVerification.java" />
296 335
         <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/model/Transaction.java" />
297
-        <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/controller/TransactionController.java" />
298 336
         <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/Repositories/TransactionRepository.java" />
299 337
         <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/EnableMongoRepositories.java" />
300 338
         <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/Application.java" />
301
-        <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/model/Wallet.java" />
302
-        <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/controller/WalletController.java" />
303
-        <option value="$PROJECT_DIR$/src/main/resources/application.properties" />
304 339
         <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/model/Block.java" />
340
+        <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/controller/WalletController.java" />
341
+        <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/controller/TransactionController.java" />
305 342
         <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/model/Transactions.java" />
343
+<<<<<<< HEAD
306 344
 >>>>>>> 8f54c3eecc5bed7d04144a96ce991b00bf0a29ef
345
+=======
346
+        <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/ProcessLoader.java" />
347
+        <option value="$PROJECT_DIR$/src/main/resources/application.properties" />
348
+        <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/model/Wallet.java" />
349
+        <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/controller/ConductTransactions.java" />
350
+>>>>>>> 83b86f0a924ec01b4de5bc873174ce272b8219a1
307 351
       </list>
308 352
     </option>
309 353
   </component>
@@ -333,7 +377,11 @@
333 377
       <foldersAlwaysOnTop value="true" />
334 378
     </navigator>
335 379
     <panes>
380
+<<<<<<< HEAD
336 381
       <pane id="Scope" />
382
+=======
383
+      <pane id="AndroidView" />
384
+>>>>>>> 83b86f0a924ec01b4de5bc873174ce272b8219a1
337 385
       <pane id="ProjectPane">
338 386
         <subPane>
339 387
           <expand>
@@ -415,13 +463,18 @@
415 463
               <item name="main" type="462c0819:PsiDirectoryNode" />
416 464
               <item name="resources" type="462c0819:PsiDirectoryNode" />
417 465
             </path>
466
+            <path>
467
+              <item name="0.1" type="b2602c69:ProjectViewProjectNode" />
468
+              <item name="CryptoCoin" type="462c0819:PsiDirectoryNode" />
469
+              <item name="src" type="462c0819:PsiDirectoryNode" />
470
+              <item name="test" type="462c0819:PsiDirectoryNode" />
471
+            </path>
418 472
           </expand>
419 473
           <select />
420 474
         </subPane>
421 475
       </pane>
422
-      <pane id="PackagesPane" />
423
-      <pane id="AndroidView" />
424 476
       <pane id="Scope" />
477
+      <pane id="PackagesPane" />
425 478
     </panes>
426 479
   </component>
427 480
   <component name="PropertiesComponent">
@@ -431,6 +484,7 @@
431 484
     <property name="RequestMappingsPanelWidth1" value="75" />
432 485
     <property name="WebServerToolWindowFactoryState" value="false" />
433 486
     <property name="aspect.path.notification.shown" value="true" />
487
+    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
434 488
   </component>
435 489
   <component name="RecentsManager">
436 490
     <key name="CreateClassDialog.RecentsKey">
@@ -527,11 +581,13 @@
527 581
       <option name="presentableId" value="Default" />
528 582
       <updated>1532357794192</updated>
529 583
       <workItem from="1532357795573" duration="4040000" />
584
+      <workItem from="1532473422589" duration="716000" />
530 585
     </task>
531 586
     <servers />
532 587
   </component>
533 588
   <component name="TimeTrackingManager">
534 589
 <<<<<<< HEAD
590
+<<<<<<< HEAD
535 591
     <option name="totallyTimeSpent" value="4624000" />
536 592
   </component>
537 593
   <component name="ToolWindowManager">
@@ -542,24 +598,31 @@
542 598
   <component name="ToolWindowManager">
543 599
     <frame x="0" y="0" width="1280" height="800" extended-state="6" />
544 600
 >>>>>>> 8f54c3eecc5bed7d04144a96ce991b00bf0a29ef
601
+=======
602
+    <option name="totallyTimeSpent" value="12326000" />
603
+  </component>
604
+  <component name="ToolWindowManager">
605
+    <frame x="0" y="0" width="1920" height="1080" extended-state="6" />
606
+>>>>>>> 83b86f0a924ec01b4de5bc873174ce272b8219a1
545 607
     <editor active="true" />
546 608
     <layout>
547
-      <window_info anchor="right" id="Palette" order="3" />
548
-      <window_info anchor="bottom" id="Event Log" order="7" side_tool="true" />
549
-      <window_info anchor="right" id="Maven Projects" order="3" />
550
-      <window_info anchor="bottom" id="Database Changes" order="7" show_stripe_button="false" />
551
-      <window_info id="Capture Tool" order="2" />
552
-      <window_info id="Designer" order="2" />
553
-      <window_info anchor="right" id="Database" order="3" />
609
+      <window_info anchor="right" id="Palette" order="6" />
610
+      <window_info anchor="bottom" id="Event Log" order="10" side_tool="true" />
611
+      <window_info anchor="right" id="Maven Projects" order="6" />
612
+      <window_info anchor="bottom" id="Database Changes" order="10" show_stripe_button="false" />
613
+      <window_info id="Capture Tool" order="5" />
614
+      <window_info id="Designer" order="5" />
615
+      <window_info anchor="right" id="Database" order="6" />
554 616
       <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
555 617
       <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
556
-      <window_info id="UI Designer" order="2" />
618
+      <window_info id="UI Designer" order="5" />
557 619
       <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
558 620
       <window_info anchor="bottom" id="TODO" order="6" />
559 621
 <<<<<<< HEAD
560 622
       <window_info anchor="bottom" id="Messages" weight="0.3281471" />
561 623
 =======
562 624
       <window_info anchor="bottom" id="Messages" order="9" weight="0.27492878" />
625
+<<<<<<< HEAD
563 626
 >>>>>>> 8f54c3eecc5bed7d04144a96ce991b00bf0a29ef
564 627
       <window_info anchor="right" id="Palette&#9;" order="3" />
565 628
       <window_info id="Image Layers" order="2" />
@@ -595,32 +658,34 @@
595 658
       <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.30329043" />
596 659
       <window_info id="Favorites" order="5" side_tool="true" />
597 660
       <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
661
+=======
662
+      <window_info anchor="right" id="Palette&#9;" order="6" />
663
+      <window_info id="Image Layers" order="5" />
664
+>>>>>>> 83b86f0a924ec01b4de5bc873174ce272b8219a1
598 665
       <window_info anchor="bottom" id="Java Enterprise" order="10" />
599
-      <window_info anchor="right" id="Bean Validation" order="6" />
666
+      <window_info anchor="right" id="Capture Analysis" order="6" />
667
+      <window_info active="true" anchor="bottom" id="Run" order="2" visible="true" weight="0.3299389" />
668
+      <window_info anchor="bottom" id="Version Control" order="10" />
669
+      <window_info anchor="bottom" id="Spring" order="10" />
600 670
       <window_info anchor="bottom" id="Terminal" order="10" />
601
-      <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
602
-      <window_info anchor="right" id="Palette" order="6" />
603
-      <window_info anchor="right" id="Palette&#9;" order="6" />
604
-      <window_info anchor="right" id="Maven Projects" order="6" />
671
+      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.30298188" />
672
+      <window_info anchor="right" id="Bean Validation" order="6" />
605 673
       <window_info id="Web" order="5" side_tool="true" />
606
-      <window_info anchor="bottom" id="Database Changes" order="10" show_stripe_button="false" />
607
-      <window_info anchor="bottom" id="Spring" order="10" />
608
-      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
609
-      <window_info id="Image Layers" order="5" />
610 674
       <window_info anchor="right" id="Theme Preview" order="6" />
611
-      <window_info anchor="right" id="Database" order="6" />
612
-      <window_info id="Capture Tool" order="5" />
613
-      <window_info anchor="bottom" id="Version Control" order="10" />
614
-      <window_info anchor="right" id="Capture Analysis" order="6" />
615
-      <window_info anchor="bottom" id="TODO" order="6" />
675
+      <window_info id="Favorites" order="5" side_tool="true" />
616 676
       <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
677
+      <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
617 678
       <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
618
-      <window_info id="UI Designer" order="5" />
679
+      <window_info anchor="bottom" id="Message" order="0" />
680
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
619 681
       <window_info anchor="bottom" id="Find" order="1" />
682
+<<<<<<< HEAD
620 683
       <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
621 684
       <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
622 685
       <window_info id="Designer" order="5" />
623 686
 >>>>>>> 8f54c3eecc5bed7d04144a96ce991b00bf0a29ef
687
+=======
688
+>>>>>>> 83b86f0a924ec01b4de5bc873174ce272b8219a1
624 689
     </layout>
625 690
     <layout-to-restore>
626 691
       <window_info id="Designer" order="0" />
@@ -663,6 +728,7 @@
663 728
     <option name="myLimit" value="2678400000" />
664 729
   </component>
665 730
   <component name="editorHistoryManager">
731
+<<<<<<< HEAD
666 732
     <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/Wallet.java">
667 733
 <<<<<<< HEAD
668 734
       <provider selected="true" editor-type-id="text-editor">
@@ -691,6 +757,8 @@
691 757
         </state>
692 758
       </provider>
693 759
     </entry>
760
+=======
761
+>>>>>>> 83b86f0a924ec01b4de5bc873174ce272b8219a1
694 762
     <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/Repositories/CoinRepository.java" />
695 763
     <entry file="file://$PROJECT_DIR$/src/test/java/com/buecoin01/ApplicationTests.java">
696 764
       <provider selected="true" editor-type-id="text-editor">
@@ -703,6 +771,10 @@
703 771
       <provider selected="true" editor-type-id="text-editor">
704 772
         <state relative-caret-position="945">
705 773
           <caret line="78" selection-start-line="78" selection-end-line="78" />
774
+          <folding>
775
+            <element signature="e#969#970#0" expanded="true" />
776
+            <element signature="e#996#997#0" expanded="true" />
777
+          </folding>
706 778
         </state>
707 779
       </provider>
708 780
     </entry>
@@ -746,10 +818,14 @@
746 818
         <state relative-caret-position="360">
747 819
           <caret line="24" column="29" selection-start-line="24" selection-start-column="29" selection-end-line="24" selection-end-column="29" />
748 820
           <folding>
821
+<<<<<<< HEAD
749 822
             <element signature="e#581#582#0" expanded="true" />
750 823
             <element signature="e#621#622#0" expanded="true" />
751 824
             <element signature="e#653#654#0" expanded="true" />
752 825
 >>>>>>> 8f54c3eecc5bed7d04144a96ce991b00bf0a29ef
826
+=======
827
+            <element signature="imports" expanded="true" />
828
+>>>>>>> 83b86f0a924ec01b4de5bc873174ce272b8219a1
753 829
           </folding>
754 830
         </state>
755 831
       </provider>
@@ -870,30 +946,6 @@
870 946
           <caret line="117" column="26" selection-start-line="117" selection-start-column="26" selection-end-line="117" selection-end-column="26" />
871 947
           <folding>
872 948
             <element signature="imports" expanded="true" />
873
-            <element signature="e#854#855#0" expanded="true" />
874
-            <element signature="e#879#880#0" expanded="true" />
875
-            <element signature="e#913#914#0" expanded="true" />
876
-            <element signature="e#941#942#0" expanded="true" />
877
-            <element signature="e#981#982#0" expanded="true" />
878
-            <element signature="e#1017#1018#0" expanded="true" />
879
-            <element signature="e#1075#1076#0" expanded="true" />
880
-            <element signature="e#1125#1126#0" expanded="true" />
881
-            <element signature="e#1158#1159#0" expanded="true" />
882
-            <element signature="e#1187#1188#0" expanded="true" />
883
-            <element signature="e#1231#1232#0" expanded="true" />
884
-            <element signature="e#1267#1268#0" expanded="true" />
885
-            <element signature="e#1298#1299#0" expanded="true" />
886
-            <element signature="e#1325#1326#0" expanded="true" />
887
-            <element signature="e#1365#1366#0" expanded="true" />
888
-            <element signature="e#1397#1398#0" expanded="true" />
889
-            <element signature="e#1429#1430#0" expanded="true" />
890
-            <element signature="e#1458#1459#0" expanded="true" />
891
-            <element signature="e#1501#1502#0" expanded="true" />
892
-            <element signature="e#1537#1538#0" expanded="true" />
893
-            <element signature="e#1580#1581#0" expanded="true" />
894
-            <element signature="e#1612#1613#0" expanded="true" />
895
-            <element signature="e#1669#1670#0" expanded="true" />
896
-            <element signature="e#1711#1712#0" expanded="true" />
897 949
           </folding>
898 950
         </state>
899 951
       </provider>
@@ -954,17 +1006,7 @@
954 1006
         </state>
955 1007
       </provider>
956 1008
     </entry>
957
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/Blockchain.java">
958
-      <provider selected="true" editor-type-id="text-editor">
959
-        <state relative-caret-position="347">
960
-          <caret line="34" selection-start-line="34" selection-end-line="34" />
961
-          <folding>
962
-            <element signature="imports" expanded="true" />
963
-            <element signature="e#1854#1855#0" expanded="true" />
964
-          </folding>
965
-        </state>
966
-      </provider>
967
-    </entry>
1009
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/Blockchain.java" />
968 1010
     <entry file="file://$PROJECT_DIR$/pom.xml">
969 1011
       <provider selected="true" editor-type-id="text-editor">
970 1012
         <state relative-caret-position="990">
@@ -1028,15 +1070,17 @@
1028 1070
         </state>
1029 1071
       </provider>
1030 1072
     </entry>
1031
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/EnableMongoRepositories.java">
1073
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/EnableMongoRepositories.java" />
1074
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/Repositories/BlockRepository.java">
1032 1075
       <provider selected="true" editor-type-id="text-editor">
1033
-        <state relative-caret-position="30">
1034
-          <caret line="2" column="18" selection-start-line="2" selection-start-column="18" selection-end-line="2" selection-end-column="18" />
1076
+        <state relative-caret-position="75">
1077
+          <caret line="8" column="1" selection-start-line="8" selection-end-line="9" />
1035 1078
         </state>
1036 1079
       </provider>
1037 1080
     </entry>
1038
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/Application.java">
1081
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/controller/BlockController.java">
1039 1082
       <provider selected="true" editor-type-id="text-editor">
1083
+<<<<<<< HEAD
1040 1084
         <state relative-caret-position="60">
1041 1085
           <caret line="6" column="22" selection-start-line="6" selection-start-column="22" selection-end-line="6" selection-end-column="22" />
1042 1086
 >>>>>>> 8f54c3eecc5bed7d04144a96ce991b00bf0a29ef
@@ -1045,52 +1089,71 @@
1045 1089
     </entry>
1046 1090
     <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/Coin.java" />
1047 1091
     <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/Repositories/WalletRepository.java">
1048
-      <provider selected="true" editor-type-id="text-editor">
1049
-        <state relative-caret-position="75">
1050
-          <caret line="8" lean-forward="true" selection-start-line="8" selection-end-line="8" />
1092
+=======
1093
+        <state relative-caret-position="639">
1094
+          <caret line="47" column="40" selection-start-line="47" selection-start-column="40" selection-end-line="47" selection-end-column="40" />
1051 1095
         </state>
1052 1096
       </provider>
1053 1097
     </entry>
1054
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/Repositories/TransactionRepository.java">
1098
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/Block.java">
1099
+>>>>>>> 83b86f0a924ec01b4de5bc873174ce272b8219a1
1055 1100
       <provider selected="true" editor-type-id="text-editor">
1056
-        <state relative-caret-position="180">
1057
-          <caret line="12" column="17" selection-start-line="12" selection-start-column="17" selection-end-line="12" selection-end-column="17" />
1101
+        <state relative-caret-position="148">
1102
+          <caret line="14" lean-forward="true" selection-start-line="14" selection-end-line="14" />
1058 1103
           <folding>
1059
-            <element signature="imports" expanded="true" />
1104
+            <element signature="e#969#970#0" expanded="true" />
1105
+            <element signature="e#996#997#0" expanded="true" />
1060 1106
           </folding>
1061 1107
         </state>
1062 1108
       </provider>
1063 1109
     </entry>
1064
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/Repositories/BlockRepository.java">
1110
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/Repositories/WalletRepository.java">
1065 1111
       <provider selected="true" editor-type-id="text-editor">
1066
-        <state relative-caret-position="75">
1067
-          <caret line="8" column="1" selection-start-line="8" selection-end-line="9" />
1112
+        <state>
1113
+          <caret column="35" lean-forward="true" selection-start-column="35" selection-end-column="35" />
1114
+        </state>
1115
+      </provider>
1116
+    </entry>
1117
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/Repositories/TransactionRepository.java">
1118
+      <provider selected="true" editor-type-id="text-editor">
1119
+        <state relative-caret-position="90">
1120
+          <caret line="6" column="59" lean-forward="true" selection-start-line="6" selection-start-column="59" selection-end-line="6" selection-end-column="59" />
1068 1121
         </state>
1069 1122
       </provider>
1070 1123
     </entry>
1071 1124
     <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/Repositories/TransactionRepository.java">
1072 1125
       <provider selected="true" editor-type-id="text-editor">
1073 1126
 <<<<<<< HEAD
1127
+<<<<<<< HEAD
1074 1128
         <state relative-caret-position="165">
1075 1129
           <caret line="11" column="17" selection-start-line="11" selection-start-column="17" selection-end-line="11" selection-end-column="17" />
1076 1130
 =======
1077 1131
         <state relative-caret-position="210">
1078 1132
           <caret line="14" column="42" lean-forward="true" selection-start-line="14" selection-start-column="42" selection-end-line="14" selection-end-column="42" />
1079 1133
 >>>>>>> 8f54c3eecc5bed7d04144a96ce991b00bf0a29ef
1134
+=======
1135
+        <state relative-caret-position="599">
1136
+          <caret line="56" lean-forward="true" selection-start-line="56" selection-end-line="56" />
1137
+>>>>>>> 83b86f0a924ec01b4de5bc873174ce272b8219a1
1080 1138
           <folding>
1081 1139
             <element signature="imports" expanded="true" />
1082 1140
           </folding>
1083 1141
         </state>
1084 1142
       </provider>
1085 1143
     </entry>
1086
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/controller/BlockController.java">
1144
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/Transactions.java">
1087 1145
       <provider selected="true" editor-type-id="text-editor">
1088 1146
 <<<<<<< HEAD
1147
+<<<<<<< HEAD
1089 1148
         <state relative-caret-position="673">
1090 1149
 =======
1091 1150
         <state relative-caret-position="639">
1092 1151
 >>>>>>> 8f54c3eecc5bed7d04144a96ce991b00bf0a29ef
1093 1152
           <caret line="47" column="40" selection-start-line="47" selection-start-column="40" selection-end-line="47" selection-end-column="40" />
1153
+=======
1154
+        <state relative-caret-position="825">
1155
+          <caret line="71" column="17" selection-start-line="71" selection-start-column="17" selection-end-line="71" selection-end-column="17" />
1156
+>>>>>>> 83b86f0a924ec01b4de5bc873174ce272b8219a1
1094 1157
           <folding>
1095 1158
             <element signature="imports" expanded="true" />
1096 1159
           </folding>
@@ -1098,6 +1161,7 @@
1098 1161
       </provider>
1099 1162
     </entry>
1100 1163
 <<<<<<< HEAD
1164
+<<<<<<< HEAD
1101 1165
     <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/BlockchainVerification.java">
1102 1166
       <provider selected="true" editor-type-id="text-editor">
1103 1167
         <state relative-caret-position="675">
@@ -1129,37 +1193,23 @@
1129 1193
           <caret line="135" column="14" lean-forward="true" selection-start-line="135" selection-start-column="14" selection-end-line="135" selection-end-column="14" />
1130 1194
 =======
1131 1195
     <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/Wallet.java">
1196
+=======
1197
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/ProcessLoader.java">
1198
+>>>>>>> 83b86f0a924ec01b4de5bc873174ce272b8219a1
1132 1199
       <provider selected="true" editor-type-id="text-editor">
1133
-        <state relative-caret-position="966">
1134
-          <caret line="121" column="45" lean-forward="true" selection-start-line="121" selection-start-column="45" selection-end-line="121" selection-end-column="45" />
1200
+        <state relative-caret-position="510">
1201
+          <caret line="34" selection-start-line="34" selection-end-line="34" />
1135 1202
           <folding>
1136 1203
             <element signature="imports" expanded="true" />
1137
-            <element signature="e#925#926#0" expanded="true" />
1138
-            <element signature="e#952#953#0" expanded="true" />
1139
-            <element signature="e#992#993#0" expanded="true" />
1140
-            <element signature="e#1024#1025#0" expanded="true" />
1141
-            <element signature="e#1123#1124#0" expanded="true" />
1142
-            <element signature="e#1156#1157#0" expanded="true" />
1143
-            <element signature="e#1195#1196#0" expanded="true" />
1144
-            <element signature="e#1227#1228#0" expanded="true" />
1145
-            <element signature="e#1258#1259#0" expanded="true" />
1146
-            <element signature="e#1287#1288#0" expanded="true" />
1147
-            <element signature="e#1329#1330#0" expanded="true" />
1148
-            <element signature="e#1365#1366#0" expanded="true" />
1149
-            <element signature="e#1481#1482#0" expanded="true" />
1150
-            <element signature="e#1521#1522#0" expanded="true" />
1151
-            <element signature="e#1548#1549#0" expanded="true" />
1152
-            <element signature="e#1573#1574#0" expanded="true" />
1153
-            <element signature="e#1607#1608#0" expanded="true" />
1154
-            <element signature="e#1635#1636#0" expanded="true" />
1155 1204
           </folding>
1156 1205
 >>>>>>> 8f54c3eecc5bed7d04144a96ce991b00bf0a29ef
1157 1206
         </state>
1158 1207
       </provider>
1159 1208
     </entry>
1160
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/controller/WalletController.java">
1209
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/Application.java">
1161 1210
       <provider selected="true" editor-type-id="text-editor">
1162 1211
 <<<<<<< HEAD
1212
+<<<<<<< HEAD
1163 1213
         <state relative-caret-position="113">
1164 1214
           <caret line="37" column="42" selection-start-line="37" selection-start-column="42" selection-end-line="37" selection-end-column="42" />
1165 1215
 =======
@@ -1204,6 +1254,17 @@
1204 1254
         <state relative-caret-position="390">
1205 1255
           <caret line="26" selection-start-line="26" selection-end-line="26" />
1206 1256
 >>>>>>> 8f54c3eecc5bed7d04144a96ce991b00bf0a29ef
1257
+=======
1258
+        <state relative-caret-position="60">
1259
+          <caret line="6" column="22" selection-start-line="6" selection-start-column="22" selection-end-line="6" selection-end-column="22" />
1260
+        </state>
1261
+      </provider>
1262
+    </entry>
1263
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/Wallet.java">
1264
+      <provider selected="true" editor-type-id="text-editor">
1265
+        <state relative-caret-position="139">
1266
+          <caret line="16" lean-forward="true" selection-start-line="16" selection-end-line="16" />
1267
+>>>>>>> 83b86f0a924ec01b4de5bc873174ce272b8219a1
1207 1268
           <folding>
1208 1269
             <element signature="imports" expanded="true" />
1209 1270
             <element signature="e#971#972#0" expanded="true" />
@@ -1232,12 +1293,13 @@
1232 1293
     </entry>
1233 1294
     <entry file="file://$PROJECT_DIR$/src/main/resources/application.properties">
1234 1295
       <provider selected="true" editor-type-id="text-editor">
1235
-        <state relative-caret-position="45">
1236
-          <caret line="3" column="36" selection-start-line="3" selection-start-column="36" selection-end-line="3" selection-end-column="36" />
1296
+        <state relative-caret-position="15">
1297
+          <caret line="1" selection-start-line="1" selection-end-line="1" />
1237 1298
         </state>
1238 1299
       </provider>
1239 1300
     </entry>
1240 1301
 <<<<<<< HEAD
1302
+<<<<<<< HEAD
1241 1303
     <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/Application.java">
1242 1304
       <provider selected="true" editor-type-id="text-editor">
1243 1305
         <state relative-caret-position="120">
@@ -1291,39 +1353,24 @@
1291 1353
         <state relative-caret-position="28">
1292 1354
           <caret line="24" column="16" lean-forward="true" selection-start-line="24" selection-end-line="25" />
1293 1355
 >>>>>>> 8f54c3eecc5bed7d04144a96ce991b00bf0a29ef
1356
+=======
1357
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/controller/WalletController.java">
1358
+      <provider selected="true" editor-type-id="text-editor">
1359
+        <state relative-caret-position="648">
1360
+          <caret line="52" selection-start-line="52" selection-end-line="52" />
1361
+          <folding>
1362
+            <element signature="imports" expanded="true" />
1363
+          </folding>
1364
+>>>>>>> 83b86f0a924ec01b4de5bc873174ce272b8219a1
1294 1365
         </state>
1295 1366
       </provider>
1296 1367
     </entry>
1297
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/Transactions.java">
1368
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/controller/ConductTransactions.java">
1298 1369
       <provider selected="true" editor-type-id="text-editor">
1299
-        <state relative-caret-position="202">
1300
-          <caret line="31" column="114" selection-start-line="31" selection-start-column="114" selection-end-line="31" selection-end-column="114" />
1370
+        <state relative-caret-position="394">
1371
+          <caret line="31" column="38" selection-start-line="31" selection-start-column="38" selection-end-line="31" selection-end-column="38" />
1301 1372
           <folding>
1302 1373
             <element signature="imports" expanded="true" />
1303
-            <element signature="e#854#855#0" expanded="true" />
1304
-            <element signature="e#879#880#0" expanded="true" />
1305
-            <element signature="e#913#914#0" expanded="true" />
1306
-            <element signature="e#941#942#0" expanded="true" />
1307
-            <element signature="e#981#982#0" expanded="true" />
1308
-            <element signature="e#1017#1018#0" expanded="true" />
1309
-            <element signature="e#1075#1076#0" expanded="true" />
1310
-            <element signature="e#1125#1126#0" expanded="true" />
1311
-            <element signature="e#1158#1159#0" expanded="true" />
1312
-            <element signature="e#1187#1188#0" expanded="true" />
1313
-            <element signature="e#1231#1232#0" expanded="true" />
1314
-            <element signature="e#1267#1268#0" expanded="true" />
1315
-            <element signature="e#1298#1299#0" expanded="true" />
1316
-            <element signature="e#1325#1326#0" expanded="true" />
1317
-            <element signature="e#1365#1366#0" expanded="true" />
1318
-            <element signature="e#1397#1398#0" expanded="true" />
1319
-            <element signature="e#1429#1430#0" expanded="true" />
1320
-            <element signature="e#1458#1459#0" expanded="true" />
1321
-            <element signature="e#1501#1502#0" expanded="true" />
1322
-            <element signature="e#1537#1538#0" expanded="true" />
1323
-            <element signature="e#1580#1581#0" expanded="true" />
1324
-            <element signature="e#1612#1613#0" expanded="true" />
1325
-            <element signature="e#1669#1670#0" expanded="true" />
1326
-            <element signature="e#1711#1712#0" expanded="true" />
1327 1374
           </folding>
1328 1375
         </state>
1329 1376
       </provider>

+ 34
- 0
src/main/java/com/buecoin01/ProcessLoader.java Parādīt failu

@@ -0,0 +1,34 @@
1
+package com.buecoin01;
2
+
3
+import com.buecoin01.Repositories.BlockRepository;
4
+import com.buecoin01.Repositories.WalletRepository;
5
+
6
+import com.buecoin01.controller.ConductTransactions;
7
+import org.springframework.beans.factory.annotation.Autowired;
8
+import org.springframework.boot.ApplicationArguments;
9
+import org.springframework.boot.ApplicationRunner;
10
+import org.springframework.stereotype.Component;
11
+
12
+import java.security.Security;
13
+import java.time.LocalDateTime;
14
+
15
+@Component
16
+public class ProcessLoader implements ApplicationRunner {
17
+
18
+
19
+    @Autowired
20
+    WalletRepository repo1;
21
+
22
+    @Autowired
23
+    BlockRepository repo3;
24
+
25
+    @Autowired
26
+    ConductTransactions transaction;
27
+
28
+
29
+    @Override
30
+    public void run(ApplicationArguments args) {
31
+        transaction.transferMoney(2L,1L,500);
32
+
33
+    }
34
+}

+ 46
- 0
src/main/java/com/buecoin01/controller/ConductTransactions.java Parādīt failu

@@ -0,0 +1,46 @@
1
+package com.buecoin01.controller;
2
+
3
+import com.buecoin01.Repositories.TransactionRepository;
4
+import com.buecoin01.Repositories.WalletRepository;
5
+import com.buecoin01.model.Transactions;
6
+import com.buecoin01.model.Wallet;
7
+import com.buecoin01.utility.Encryption;
8
+import org.springframework.beans.factory.annotation.Autowired;
9
+import org.springframework.web.bind.annotation.RestController;
10
+
11
+import java.time.LocalDateTime;
12
+
13
+@RestController
14
+public class ConductTransactions {
15
+    @Autowired
16
+    private TransactionRepository transactionRepository;
17
+
18
+    @Autowired
19
+    private WalletRepository walletRepository;
20
+
21
+
22
+    public double getBalance(Long id){
23
+        return walletRepository.getOne(id).getAmount();
24
+    }
25
+
26
+    public String transferMoney(Long toId, Long fromId, double amount){
27
+        String response;
28
+        if(amount <= getBalance(fromId)){
29
+            Wallet from = walletRepository.getOne(toId);
30
+            from.setAmount(getBalance(fromId) - amount);
31
+            walletRepository.save(from);
32
+            Wallet to = walletRepository.getOne(fromId);
33
+            to.setAmount(getBalance(fromId) + amount);
34
+            walletRepository.save(to);
35
+            Transactions n = new Transactions(Encryption.applySha256(toId.toString() + fromId.toString() + Double.toString(amount)), Encryption.applySha256(fromId.toString()), Encryption.applySha256(toId.toString()), amount, LocalDateTime.now());
36
+            transactionRepository.save(n);
37
+            response = "Success";
38
+        } else response = "Insufficient funds";
39
+
40
+        return response;
41
+    }
42
+
43
+
44
+
45
+
46
+}

+ 57
- 0
src/main/java/com/buecoin01/controller/TransactionController.java Parādīt failu

@@ -0,0 +1,57 @@
1
+package com.buecoin01.controller;
2
+
3
+import com.buecoin01.Repositories.TransactionRepository;
4
+import com.buecoin01.model.Transactions;
5
+import org.springframework.beans.factory.annotation.Autowired;
6
+import org.springframework.http.HttpStatus;
7
+import org.springframework.http.ResponseEntity;
8
+import org.springframework.web.bind.annotation.*;
9
+import java.util.Optional;
10
+
11
+
12
+@CrossOrigin(origins = {"http://localhost:8100", "http://localhost:8080"})
13
+@RestController
14
+@RequestMapping(path = "/transaction")
15
+public class TransactionController {
16
+
17
+
18
+
19
+
20
+        @Autowired
21
+        private TransactionRepository transactionRepository;
22
+
23
+        @RequestMapping(value = "/user/{id}", method = RequestMethod.GET)
24
+        public ResponseEntity get(@PathVariable Long id) {
25
+            Optional<Transactions> transaction = transactionRepository.findById(id);
26
+            return new ResponseEntity <>(transaction, HttpStatus.OK );
27
+
28
+        }
29
+
30
+        @RequestMapping(value = "/users", method = RequestMethod.GET)
31
+        public ResponseEntity <Iterable <Transactions>> getAllUsers() {
32
+            Iterable <Transactions> allTransactions = transactionRepository.findAll();
33
+            return new ResponseEntity <>( allTransactions, HttpStatus.OK );
34
+
35
+        }
36
+
37
+        @RequestMapping(path = "/add", method = RequestMethod.POST)
38
+        public ResponseEntity <?> create(@RequestBody Transactions transactions) {
39
+            transactionRepository.save(transactions);
40
+            return new ResponseEntity <>(transactions, HttpStatus.CREATED );
41
+        }
42
+
43
+        @RequestMapping(path = "/delete", method = RequestMethod.DELETE)
44
+        public ResponseEntity <Transactions> deleteUser(@RequestBody Transactions transactions) {
45
+            transactionRepository.delete(transactions);
46
+            return new ResponseEntity <>( HttpStatus.OK );
47
+        }
48
+
49
+        @RequestMapping(path = "/updateUser", method = RequestMethod.PUT)
50
+        public ResponseEntity <Transactions> updateUser(@RequestBody Transactions transactions) {
51
+            transactionRepository.save(transactions);
52
+            return new ResponseEntity <>( HttpStatus.OK );
53
+        }
54
+
55
+
56
+    }
57
+

+ 58
- 0
src/main/java/com/buecoin01/controller/WalletController.java Parādīt failu

@@ -0,0 +1,58 @@
1
+package com.buecoin01.controller;
2
+
3
+import com.buecoin01.Repositories.WalletRepository;
4
+import com.buecoin01.model.Wallet;
5
+import org.springframework.beans.factory.annotation.Autowired;
6
+import org.springframework.http.HttpStatus;
7
+import org.springframework.http.ResponseEntity;
8
+import org.springframework.web.bind.annotation.*;
9
+import java.util.Optional;
10
+
11
+
12
+@RestController
13
+@CrossOrigin(origins = {"http://localhost:8100", "http://localhost:8080"})
14
+public class WalletController {
15
+
16
+
17
+        @Autowired
18
+        private WalletRepository walletRepository;
19
+
20
+        @RequestMapping(value = "/wallet/{id}", method = RequestMethod.GET)
21
+        public ResponseEntity get(@PathVariable Long id) {
22
+            Optional<Wallet> wallet = walletRepository.findById(id);
23
+            return new ResponseEntity<>(wallet, HttpStatus.OK);
24
+
25
+        }
26
+
27
+        @RequestMapping(value = "/wallets", method = RequestMethod.GET)
28
+        public ResponseEntity<Iterable<Wallet>> getAllUsers() {
29
+            Iterable<Wallet> allWallets = walletRepository.findAll();
30
+            return new ResponseEntity<>(allWallets, HttpStatus.OK);
31
+
32
+        }
33
+
34
+        @RequestMapping(path = "/addWallet", method = RequestMethod.POST)
35
+        public ResponseEntity<?> create(@RequestBody Wallet wallet) {
36
+            walletRepository.save(wallet);
37
+            return new ResponseEntity<>(wallet, HttpStatus.CREATED);
38
+        }
39
+
40
+        @RequestMapping(path = "/deleteWallet", method = RequestMethod.DELETE)
41
+        public ResponseEntity<Wallet> deleteWallet(@RequestBody Wallet wallet) {
42
+            walletRepository.delete(wallet);
43
+            return new ResponseEntity<>(HttpStatus.OK);
44
+        }
45
+
46
+        @RequestMapping(path = "/updateWallet", method = RequestMethod.PUT)
47
+        public ResponseEntity<Wallet> updateWallet(@RequestBody Wallet wallet) {
48
+            walletRepository.save(wallet);
49
+            return new ResponseEntity<>(HttpStatus.OK);
50
+        }
51
+
52
+
53
+
54
+
55
+    }
56
+
57
+
58
+

+ 82
- 0
src/main/java/com/buecoin01/model/Block.java Parādīt failu

@@ -0,0 +1,82 @@
1
+package com.buecoin01.model;
2
+
3
+
4
+import com.buecoin01.utility.Encryption;
5
+
6
+import javax.persistence.*;
7
+import java.time.LocalDateTime;
8
+import java.util.ArrayList;
9
+
10
+
11
+@Entity
12
+public class Block {
13
+
14
+    private String minerID;
15
+
16
+    @Id
17
+    @Column(name = "id")
18
+    @GeneratedValue(strategy = GenerationType.IDENTITY)
19
+    private long id;
20
+
21
+    @Column
22
+    private String hash;
23
+    private String previousHash;
24
+    private String data;
25
+    public String merkleRoot;
26
+    public ArrayList<Transactions> transactionList = new ArrayList<>();
27
+    private LocalDateTime timeStamp;
28
+    private int nonce;
29
+
30
+    public Block() {
31
+    }
32
+
33
+    public Block(String previousHash, LocalDateTime time, int nonce) {
34
+        this.timeStamp = time;
35
+        this.previousHash = previousHash;
36
+        this.hash = calculateHash();
37
+    }
38
+
39
+    public String getHash() {
40
+        return hash;
41
+    }
42
+
43
+    public String getPreviousHash() {
44
+        return previousHash;
45
+    }
46
+
47
+    public String getData() {
48
+        return data;
49
+    }
50
+
51
+    public LocalDateTime getTimeStamp() {
52
+        return timeStamp;
53
+    }
54
+
55
+    public String calculateHash() {
56
+        return Encryption.applySha256(
57
+                  previousHash +
58
+                        timeStamp.toString() +
59
+                        Integer.toString(nonce) +
60
+                        merkleRoot);
61
+    }
62
+
63
+    public long getId() {
64
+        return id;
65
+    }
66
+
67
+    public void setId(long id) {
68
+        this.id = id;
69
+    }
70
+
71
+    public void mineBlock(int difficulty) {
72
+        String target = new String(new char[difficulty]).replace('\0', '0'); //Create a string with difficulty * "0"
73
+        while(!hash.substring( 0, difficulty).equals(target)) {
74
+            nonce ++;
75
+            hash = calculateHash();
76
+            System.out.println(hash);
77
+        }
78
+        System.out.println("Block Mined " + hash);
79
+        System.out.println("You have been awarded 1 Zip!");
80
+    }
81
+
82
+    }

+ 91
- 0
src/main/java/com/buecoin01/model/Transactions.java Parādīt failu

@@ -0,0 +1,91 @@
1
+package com.buecoin01.model;
2
+
3
+import com.buecoin01.utility.Encryption;
4
+import com.buecoin01.utility.TransactionInput;
5
+import com.buecoin01.utility.TransactionOutput;
6
+import org.springframework.beans.factory.annotation.Autowired;
7
+import org.springframework.context.annotation.Bean;
8
+import org.springframework.stereotype.Component;
9
+
10
+import javax.persistence.*;
11
+import java.security.PrivateKey;
12
+import java.security.PublicKey;
13
+import java.time.LocalDateTime;
14
+import java.util.ArrayList;
15
+import java.util.List;
16
+
17
+@Component
18
+@Entity
19
+public class Transactions {
20
+    @Id
21
+    @Column(name = "id")
22
+    @GeneratedValue(strategy = GenerationType.IDENTITY)
23
+    private long id;
24
+
25
+    @Column
26
+    private String transactionId;
27
+    private String fromId;
28
+    private String toId;
29
+    private double amount;
30
+    private LocalDateTime timestamp;
31
+
32
+    public Transactions(String transactionId, String fromId, String toId, double amount, LocalDateTime timestamp) {
33
+        this.transactionId = transactionId;
34
+        this.fromId = fromId;
35
+        this.toId = toId;
36
+        this.amount = amount;
37
+        this.timestamp = timestamp;
38
+    }
39
+
40
+    public long getId() {
41
+        return id;
42
+    }
43
+
44
+    public void setId(long id) {
45
+        this.id = id;
46
+    }
47
+
48
+    public String getTransactionId() {
49
+        return transactionId;
50
+    }
51
+
52
+    public void setTransactionId(String transactionId) {
53
+        this.transactionId = transactionId;
54
+    }
55
+
56
+    public String getFromId() {
57
+        return fromId;
58
+    }
59
+
60
+    public void setFromId(String fromId) {
61
+        this.fromId = fromId;
62
+    }
63
+
64
+    public String getToId() {
65
+        return toId;
66
+    }
67
+
68
+    public void setToId(String toId) {
69
+        this.toId = toId;
70
+    }
71
+
72
+    public double getAmount() {
73
+        return amount;
74
+    }
75
+
76
+    public void setAmount(double amount) {
77
+        this.amount = amount;
78
+    }
79
+
80
+    public LocalDateTime getTimestamp() {
81
+        return timestamp;
82
+    }
83
+
84
+    public void setTimestamp(LocalDateTime timestamp) {
85
+        this.timestamp = timestamp;
86
+    }
87
+
88
+    public Transactions(){}
89
+
90
+
91
+}

+ 71
- 0
src/main/java/com/buecoin01/model/Wallet.java Parādīt failu

@@ -0,0 +1,71 @@
1
+package com.buecoin01.model;
2
+
3
+import com.buecoin01.utility.TransactionInput;
4
+import com.buecoin01.utility.TransactionOutput;
5
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
6
+import org.hibernate.annotations.Proxy;
7
+import org.springframework.stereotype.Component;
8
+
9
+import javax.persistence.*;
10
+import java.security.*;
11
+
12
+
13
+@Entity
14
+@Component
15
+@Proxy(lazy = false)
16
+public class Wallet {
17
+
18
+    @Id
19
+    @Column(name = "id")
20
+    @GeneratedValue(strategy = GenerationType.IDENTITY)
21
+    private long id;
22
+    @Column(name = "pubicId")
23
+    private String publicId;
24
+    @Column(name = "amount")
25
+    private double amount;
26
+    @Column(name = "name")
27
+    private String name;
28
+
29
+
30
+    public Wallet(){}
31
+
32
+    public Wallet(String publicId, long amount, String name) {
33
+        this.publicId = publicId;
34
+        this.amount = amount;
35
+        this.name = name;
36
+    }
37
+
38
+    public String getName() {
39
+        return name;
40
+    }
41
+
42
+    public void setName(String name) {
43
+        this.name = name;
44
+    }
45
+
46
+    public double getAmount() {
47
+        return amount;
48
+    }
49
+
50
+    public void setAmount(double amount) {
51
+        this.amount = amount;
52
+    }
53
+
54
+
55
+    public String getPublicId() {
56
+
57
+        return publicId;
58
+    }
59
+
60
+    public void setPublicId(String publicId) {
61
+        this.publicId = publicId;
62
+    }
63
+
64
+    public long getId() {
65
+        return id;
66
+    }
67
+
68
+    public void setId(long id) {
69
+        this.id = id;
70
+    }
71
+}

+ 11
- 0
src/main/resources/application.properties Parādīt failu

@@ -0,0 +1,11 @@
1
+spring.jpa.hibernate.ddl-auto=update
2
+
3
+spring.datasource.url=jdbc:mysql://167.99.50.8:3306/bitcoin?useSSL=false
4
+spring.datasource.username=root
5
+spring.datasource.password=098poilkj
6
+spring.datasource.driver-class-name=com.mysql.jdbc.Driver
7
+spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
8
+spring.datasource.testWhileIdle = true
9
+spring.datasource.validationQuery = SELECT 1
10
+
11
+

+ 11
- 0
target/classes/application.properties Parādīt failu

@@ -0,0 +1,11 @@
1
+spring.jpa.hibernate.ddl-auto=update
2
+
3
+spring.datasource.url=jdbc:mysql://167.99.50.8:3306/bitcoin?useSSL=false
4
+spring.datasource.username=root
5
+spring.datasource.password=098poilkj
6
+spring.datasource.driver-class-name=com.mysql.jdbc.Driver
7
+spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
8
+spring.datasource.testWhileIdle = true
9
+spring.datasource.validationQuery = SELECT 1
10
+
11
+

Binārs
target/classes/com/buecoin01/ProcessLoader.class Parādīt failu


Binārs
target/classes/com/buecoin01/controller/ConductTransactions.class Parādīt failu


Binārs
target/classes/com/buecoin01/controller/TransactionController.class Parādīt failu


Binārs
target/classes/com/buecoin01/model/Block.class Parādīt failu


Binārs
target/classes/com/buecoin01/model/Transactions.class Parādīt failu


Binārs
target/classes/com/buecoin01/model/Wallet.class Parādīt failu