本文整理汇总了Python中armoryengine.BDM.TheBDM.getSenderAddr20方法的典型用法代码示例。如果您正苦于以下问题:Python TheBDM.getSenderAddr20方法的具体用法?Python TheBDM.getSenderAddr20怎么用?Python TheBDM.getSenderAddr20使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类armoryengine.BDM.TheBDM
的用法示例。
在下文中一共展示了TheBDM.getSenderAddr20方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: range
# 需要导入模块: from armoryengine.BDM import TheBDM [as 别名]
# 或者: from armoryengine.BDM.TheBDM import getSenderAddr20 [as 别名]
firstSDTxPassed = True
# Add this to the total tx/byte count, first time
if not thisIsAWager:
totalSDBytes += tx.getSize()
totalSDTx += 1
thisIsAWager = True
totalBets += 1
diceAddr = txout.getRecipientAddr()
betAmt = txout.getValue()
betWin = betAmt * diceWinMultMap[diceAddr]
betLos = betAmt * diceLoseMultMap[diceAddr]
firstTxIn = tx.getTxIn(0)
bettorAddr = TheBDM.getSenderAddr20(firstTxIn)
## Create the serialized OutPoint, store the tx
outpointStr = txHash + int_to_binary(nout, widthBytes=4)
betsIn[outpointStr] = [betAmt, betWin, betLos, diceAddr, bettorAddr]
sdRecvAmt += betAmt
diceBetsMadeMap[diceAddr] += 1
winPct = diceTargetMap[diceAddr] / 65536.0;
losPct = 1-winPct
winMult = diceWinMultMap[diceAddr]
losMult = diceLoseMultMap[diceAddr]
fileAllBets.write('%s %d %f %f %f %f\n' % (coin2str(betAmt), diceTargetMap[diceAddr], winPct, winMult, losPct, losMult))
for nin in range(tx.getNumTxIn()):