Mining tutorial of decredpos
POW: full name of proof of work
pos: proof of stake
both of them are the consensus mechanism of blockchain and the bookkeeping method of digital currency
the difference is:
1. POW mechanism: workload proof mechanism, that is, the proof of workload, is the requirement that must be met when generating a new transaction information (that is, a new block) to be added to the blockchain. In the blockchain network based on workload proof mechanism, the ability of nodes to obtain the correct numerical solution to generate blocks by calculating the numerical solution of random hash hash is the specific performance of node computing power
POS mechanism: the proof of rights and interests requires the certifier to provide a certain amount of ownership of cryptocurrency. The operation mode of the proof of rights and interests mechanism is that when creating a new block, the miners need to create a "currency right" transaction, and the transaction will send some coins to the miners themselves according to the preset proportion. According to the proportion and time of token owned by each node, the equity proof mechanism reces the mining difficulty of nodes proportionally according to the algorithm, so as to speed up the speed of searching for random numbersextended materials:
the concept of bitcoin was first proposed by Nakamoto in 2009. According to Nakamoto's ideas, the open source software and the P2P network on it were designed and released. Bitcoin is a kind of P2P digital currency. Point to point transmission means a decentralized payment system
unlike most currencies, bitcoin does not rely on specific currency institutions. It is generated by a large number of calculations based on specific algorithms. Bitcoin economy uses the distributed database composed of many nodes in the whole P2P network to confirm and record all transactions, and uses the design of cryptography to ensure the security of all aspects of currency circulation. The decentralized nature and algorithm of P2P can ensure that it is impossible to artificially manipulate the value of bitcoin through mass proction
In the main interface settings, the second one below single player game and multiplayer game: hads, there is a vein miner block list in which minerals can be added
players only need to add the name of the pickaxe, or use the command:
/ weinminer blocklist pickaxe add nevermine:oreLimonite
if players want to add other tools, they can also support adding tools, that is the tool list option
extended data:
nihilistic world mineral mod instruction code:
1. Axe: Mining pick tool
1. Skeleton pick nevermine:grounderSkeletal 2. Amethyst pick nevermine:AmethystPickaxe
3 nevermine:LimonitePickaxe 4. Sulfur copper antimony pick nevermine:RositePickaxe
5、 Sapphire pick nevermine:SapphirePickaxe
6 nevermine:EmberstonePickaxe
7. Skeleton pick nevermine:SkeletalPickaxe Second, ore (part of the nihilistic world)
1, blood stone ore nevermine:oreBloodstone 2. Amethyst ore nevermine:oreAmethyst
3 nevermine:oreChestFragments
4、 Microcrystalline ore nevermine:oreCrystallite
5 nevermine:oreEmberstone
6 nevermine:oreFootFragments
7. Jadeite ore nevermine:oreJade
8 nevermine:oreLegFragments 9. Sulfur copper antimony ore nevermine:oreRosite
10. Limonite nevermine:oreLimonite
when you dig, There is a certain probability of dropping objects:
stone, abyssal stone, iron stone, lower legendary stone, deep rock, greckon stone and Baron stone
there are also barathos hellstone, Mysterium stone or crystal rock
when the skill level is increased, the dropped items will also change. The main items that fall off are all kinds of essence (Essence). p>
ore (part of the nihilistic world)
blood stone ore nevermine:oreBloodstone
Amethyst ore nevermine:oreAmethyst
sternal fragments nevermine:oreChestFragments
microcrystalline ore nevermine:oreCrystallite
emberite ore nevermine:oreEmberstone
foot bone fragments nevermine:or Efootfragments
jadeite ore nevermine:oreJade
leg bone fragments nevermine:oreLegFragments
sulfur copper antimony ore nevermine:oreRosite
limonite nevermine:oreLimonite
sapphire ore nevermine:oreSapphire
skull fragments nevermine:oreSkullFragments
mysterious ore nevermine:oreMystite
Steel block nevermine:oreLyon
gloomy ore nevermine:oreGhastly
fear ore nevermine:oreGhoulish
magnesium ore nevermine:oreVarsium
titanium ore nevermine:oreElecanium
pyrite potassium ore nevermine:oreBaronyte
void ore nevermine:oreBlazium
electromagnetic uranium ore nevermine:oreChargedRunium
purple crystal ore nevermine:oreCrystalPurple
Blue crystal ore nevermine:oreCrystalBlue
green crystal ore nevermine:oreCrystalGreen
yellow crystal ore nevermine:oreCrystalYellow
Red crystal ore nevermine:oreCrystalRed
white crystal ore nevermine:oreCrystalWhite
axe />
Mining pick tools
skeleton pick nevermine:grounderSkeletal
Amethyst pick nevermine:AmethystPickaxe
brown iron pick nevermine:LimonitePickaxe
sulfur copper antimony pickaxe nevermine:RositePickaxe
sapphire pick nevermine:SapphirePickaxe
ember pick nevermine:EmberstonePickaxe
skeleton pick nevermine:SkeletalPickax e
in the first step, select new from file to create a new workfile
in the second step, data y enters data. When you enter the independent variable, it is data x1, and so on.
when you open it, it's similar to excel. If you can't enter it, you can see if you have adjusted to the editing interface. There is a + / - Edit button in the row of buttons on the top of the data window, and you can switch by clicking it
in the third step, OLS
LS YC X1 x2 X3...
after entering, there are estimated values of parameters, determination coefficients, t-test, F-test and so on<
Zou test:
in this OLS window, Zou test can be performed through the first Chow breakpoint test of stability tests in the view above. Enter the first number of data in the second group, such as 88 data in total. Now Zou test is divided into two groups, and enter 45
the F-test value can determine whether it has passed the Zou test<
heteroscedasticity test:
also in view, the last two white heteroskedasticity (cross terms) or (no cross terms) of the resial tests are whether the equation has cross terms. Choose the result of F, and then judge
if there is heteroscedasticity, that is F & gt; c. In the white method, click estimate at the top of the OLS window, and select option under the hook and fork on the right side of the pop-up window. Check in front of heterostability, and select white below to confirm. Then confirm in the previous window, and the adjusted procere will come out
if these are not enough, ask me more questions later, but I don't learn much ~ I hope it can help you.
ore (part of the nihilistic world)
Blood Stone ore nevermine:oreBloodstone
Amethyst ore nevermine:oreAmethyst
sternal fragment nevermine:oreChestFragments
microcrystalline ore nevermine:oreCrystallite
emberite ore nevermine:oreEmberstone
foot bone fragments nevermine:oreFootFragments
emerald ore nevermine: Bone fragment of leg nevermine:oreLegFragments
sulfur copper antimony ore nevermine:oreRosite
limonite nevermine:oreLimonite
sapphire ore nevermine:oreSapphire
skull fragments nevermine:oreSkullFragments
mysterious ore nevermine:oreMystite
steel block nevermine:oreLyon
gloomy ore nevermine:oreGhastly
fear is neve rmine:oreGhoulish
magnesium ore nevermine:oreVarsium
titanium ore nevermine:oreElecanium
pyrite potassium ore nevermine:oreBaronyte
void ore nevermine:oreBlazium
electromagnetic uranium ore nevermine:oreChargedRunium
purple crystal ore nevermine:oreCrystalPurple
Blue crystal ore nevermine:oreCrystalBlue
green crystal ore nevermine:o Recrystalgreen
yellow crystal ore nevermine:oreCrystalYellow
Red crystal ore nevermine:oreCrystalRed
white crystal ore nevermine:oreCrystalWhite
axe
Mining pick tool
skeleton pick nevermine:grounderSkeletal
Amethyst pick nevermine:AmethystPickaxe
brown iron pick nevermine:LimonitePickaxe
sulfur copper antimony pickaxe nevermine:RositePick Axe
sapphire pick nevermine:SapphirePickaxe
ember pick nevermine:EmberstonePickaxe
skeleton pick nevermine:SkeletalPickaxe
.386
.model flat,stdcall
option casemap:none
include CBox.inc
include StoreHouse.inc
.const
MAP_TOP equ 32
MAP_LEFT equ 1
.data
xBmBack dd 0
xBmWall dd 30
xBmRoad dd 60
xBmBox1 dd 90
xBmBox2 dd 120
xBmObject dd 150
xBmMan dd 180
szCaption db 'RedBox',0
szLoadError db 'Load Resource Error! ',0
szAlreadyMaxGate db 'Already Max Gate!',0
szOutOfRange db 'Out of Range!',0
szSuccessMsg db 'Your are success!!!',13,10,'Are you want to next gate?',0
FmtStr db 'val = %d',0
FmtGate db ' - No.%d',0
.data?
bmToolbar dd ?
BackDc dd ?
hBitMap dd ?
szErrorMessage db 256 p (?)
Map db 14D*12D p (?) ; 14 x 12 Grid
ManXPos dd ?
ManYPos dd ?
CurrGate dd ?
CurrStep dd ?
.code
start:
invoke GetMoleHandle,NULL
mov hInstance,eax
invoke GetCommandLine
mov CommandLine,eax
invoke InitCommonControls
invoke WinMain,hInstance,NULL,CommandLine,SW_SHOWDEFAULT
invoke ExitProcess,eax
WinMain proc hInst:HINSTANCE,hPrevInst:HINSTANCE,CmdLine:LPSTR,CmdShow:DWORD
LOCAL wc:WNDCLASSEX
LOCAL msg:MSG
mov wc.cbSize,SIZEOF WNDCLASSEX
mov wc.style,CS_HREDRAW or CS_VREDRAW
mov wc.lpfnWndProc,OFFSET WndProc
mov wc.cbClsExtra,NULL
mov wc.cbWndExtra,DLGWINDOWEXTRA
push hInst
pop wc.hInstance
mov wc.hbrBackground,COLOR_BTNFACE+1
mov wc.lpszMenuName,OFFSET MenuName
mov wc.lpszClassName,OFFSET ClassName
invoke LoadIcon,NULL,IDI_APPLICATION
mov wc.hIcon,eax
mov wc.hIconSm,eax
invoke LoadCursor,NULL,IDC_ARROW
mov wc.hCursor,eax
invoke RegisterClassEx,addr wc
invoke CreateDialogParam,hInstance,addr DlgName,NULL,addr WndProc,NULL
invoke ShowWindow,hWnd,SW_SHOWNORMAL
invoke UpdateWindow,hWnd
.while TRUE
invoke GetMessage,addr msg,NULL,0,0
.BREAK .if !eax
invoke TranslateMessage,addr msg
invoke DispatchMessage,addr msg
.endw
mov eax,msg.wParam
ret
WinMain endp
WndProc proc hWin:HWND,uMsg:UINT,wParam:WPARAM,lParam:LPARAM
LOCAL ps :PAINTSTRUCT
LOCAL Dc:HDC
mov eax,uMsg
.if eax == WM_KEYDOWN
invoke KeyDownProc,wParam
.elseif eax==WM_INITDIALOG
push hWin
pop hWnd
invoke GetDlgItem,hWin,IDC_TBRMAIN
invoke DoToolBar,hInstance,eax
invoke LoadRes
.if eax == FALSE
invoke MessageBox,hWin,Addr szErrorMessage,\
Addr szLoadError,MB_ICONERROR
.endif
invoke InitStBar
invoke SelectGate,1
.elseif eax==WM_COMMAND
mov eax,wParam
and eax,0FFFFh
.if eax==IDM_FILE_EXIT
invoke SendMessage,hWin,WM_CLOSE,0,0
.elseif eax==IDM_HELP_ABOUT
invoke ShellAbout,hWin,addr AppName,addr AboutMsg,NULL
.elseif eax == IDC_TBB_NEW
invoke SelectGate,CurrGate
.elseif eax == IDC_TBB_PREV
mov eax, CurrGate
dec eax
invoke SelectGate,eax
.elseif eax == IDC_TBB_NEXT
invoke NextGate
.elseif eax == IDC_TBB_ABOUT
invoke ShellAbout,hWnd,Addr AppName,Addr AboutMsg,NULL
.endif
.elseif eax==WM_PAINT
invoke BeginPaint,hWin,Addr ps
mov Dc,eax
invoke WMPaint,Dc
invoke EndPaint,hWin,Addr ps
.elseif eax==WM_CLOSE
invoke DestroyWindow,hWin
.elseif uMsg==WM_DESTROY
invoke FreeRes
invoke PostQuitMessage,NULL
.else
invoke DefWindowProc,hWin,uMsg,wParam,lParam
ret
.endif
xor eax,eax
ret
WndProc endp
DoToolBar proc hInst:DWORD,hToolBar:HWND
LOCAL tbab:TBADDBITMAP
;Set toolbar struct size
invoke SendMessage,hToolBar,TB_BUTTONSTRUCTSIZE,sizeof TBBUTTON,0
;Set toolbar bitmap
;push HINST_COMMCTRL
invoke LoadBitmap,hInstance,BM_TOOLBAR
mov bmToolbar,eax
;push eax
;pop tbab.hInst
;mov tbab.nID,IDB_VIEW_LARGE_COLOR ;IDB_STD_SMALL_COLOR
mov tbab.hInst,NULL
mov tbab.nID ,eax
invoke SendMessage,hToolBar,TB_ADDBITMAP,15,addr tbab
;Set toolbar buttons
invoke SendMessage,hToolBar,TB_ADDBUTTONS,ntbrbtns,addr tbrbtns
mov eax,hToolBar
ret
DoToolBar endp
;-- Load Bitmap from Resource and return true or false ---
LoadRes proc
LOCAL Dc:DWORD
invoke lstrcpy,Addr szErrorMessage,Addr szLoadError
invoke GetDC,hWnd
mov Dc,eax
invoke CreateCompatibleDC,Dc
mov BackDc,eax
invoke LoadBitmap,hInstance,BM_MAIN
.if eax == 0
mov eax ,FALSE
jmp @@ExitLoad
.endif
mov hBitMap,eax
invoke SelectObject,BackDc,hBitMap
mov eax ,TRUE
@@ExitLoad:
ret
LoadRes endp
;-- Free all Resource ---
FreeRes proc
invoke DeleteObject,hBitMap
invoke DeleteDC,BackDc
invoke DeleteObject,bmToolbar
ret
FreeRes endp
NextGate proc
mov eax ,CurrGate
.if eax < MAX_GATES
inc CurrGate
invoke SelectGate,CurrGate
.else
invoke MessageBox,hWnd,Addr szAlreadyMaxGate,Addr szCaption,MB_ICONINFORMATION
.endif
ret
NextGate endp
;--- Select game Gate
SelectGate proc iGate :DWORD
LOCAL szTmp1[256]:BYTE
LOCAL szTmp2[256]:BYTE
mov eax ,iGate
.if eax >MAX_GATES || eax < 1
invoke MessageBox,hWnd,Addr szOutOfRange,Addr szCaption,MB_ICONERROR
ret
.endif
mov CurrGate ,eax
mov eax ,14D*12D
mov ebx,iGate
dec ebx
mul bx
push esi
lea esi,BoxMaps
add esi,eax
lea edi,Map
mov ecx,14D*12D
rep movsb
mov CurrStep , 0
mov ecx ,0
lea esi,Map
@@1: ;-- found Man Pos
mov ebx,ecx
mov al, byte ptr [esi][ebx]
cmp al,MAP_MAN
jz @@2
inc ecx
cmp ecx,14D*12D
jnz @@1
@@2:
mov al ,MAP_ROAD
mov byte ptr [esi][ebx],al
; Pos to x,y
mov edx ,0
mov eax,ecx
mov ebx,14D
div ebx
mov ManXPos,edx
mov ManYPos,eax
pop esi
invoke Repaint
invoke wsprintf,Addr szTmp1,Addr FmtGate,CurrGate
invoke lstrcpy,Addr szTmp2,Addr szCaption
invoke lstrcat,Addr szTmp2,Addr szTmp1
invoke SendMessage,hWnd,WM_SETTEXT,0,Addr szTmp2
ret
SelectGate endp
WMPaint proc Dc:DWORD
LOCAL i:DWORD
LOCAL j:DWORD
LOCAL x:DWORD
LOCAL y:DWORD
LOCAL nPos :DWORD
mov x ,MAP_LEFT
mov y ,MAP_TOP
mov i ,1
mov j ,1
lea esi ,Map
@@i:
mov x ,MAP_LEFT
mov j ,1
@@j:
;Calc nPos ,nPos := (i-1) * 14 + (j-1)
mov eax,i
dec eax
mov ebx,14D
mul bx
add eax,j
dec eax
mov ebx,eax
mov al,[esi][ebx]
.if al == MAP_BACK
invoke BitBlt,Dc,x,y,30D,30D,BackDc,xBmBack,0,SRCCOPY
.elseif al == MAP_WALL
invoke BitBlt,Dc,x,y,30D,30D,BackDc,xBmWall,0,SRCCOPY
.elseif al == MAP_ROAD
invoke BitBlt,Dc,x,y,30D,30D,BackDc,xBmRoad,0,SRCCOPY
.elseif al == MAP_BOX1
invoke BitBlt,Dc,x,y,30D,30D,BackDc,xBmBox1,0,SRCCOPY
.elseif al == MAP_BOX2
invoke BitBlt,Dc,x,y,30D,30D,BackDc,xBmBox2,0,SRCCOPY
.elseif al == MAP_OBJECT
invoke BitBlt,Dc,x,y,30D,30D,BackDc,xBmObject,0,SRCCOPY
.else ; eax == MAP_MAN
invoke BitBlt,Dc,x,y,30D,30D,BackDc,xBmMan,0,SRCCOPY
.endif
add x,30D
inc j
cmp j ,15D
jb @@j ; if j <= 14
inc i
add y,30D
cmp i,13 ;if i <= 12
jb @@i
mov edx,0
mov eax,ManXPos
mov ebx,30D
mul bx
add eax,MAP_LEFT
mov x,eax
mov edx ,0
mov eax,ManYPos
mov ebx,30D
mul bx
add eax,MAP_TOP
mov y,eax
invoke BitBlt,Dc,x,y,30D,30D,BackDc,xBmMan,0,SRCCOPY
ret
WMPaint endp
KeyDownProc proc wParam:DWORD
mov eax ,wParam
.if eax == VK_UP
invoke ManMove,VK_UP
.elseif eax == VK_DOWN
invoke ManMove,VK_DOWN
.elseif eax == VK_LEFT
invoke ManMove,VK_LEFT
.elseif eax == VK_RIGHT
invoke ManMove ,VK_RIGHT
.else
ret
.endif
invoke Check
.if eax == TRUE
invoke MessageBox,hWnd,Addr szSuccessMsg,Addr szCaption,MB_ICONINFORMATION or MB_OKCANCEL
.if eax == IDOK
invoke NextGate
.endif
.endif
ret
KeyDownProc endp
ManMove proc vKey :DWORD
LOCAL NewX:DWORD
LOCAL NewY:DWORD
LOCAL NewX2 :DWORD
LOCAL NewY2 :DWORD
LOCAL M1 :byte
LOCAL M2 :byte
LOCAL nPos1 :DWORD
LOCAL nPos2 :DWORD
push esi
mov eax,ManXPos
mov NewX,eax
mov NewX2,eax
mov eax,ManYPos
mov NewY,eax
mov NewY2,eax
mov eax ,vKey
.if eax == VK_UP
dec NewY
dec NewY2
dec NewY2
.elseif eax == VK_DOWN
inc NewY
inc NewY2
inc NewY2
.elseif eax == VK_LEFT
dec NewX
dec NewX2
dec NewX2
.elseif eax