我用BYFN将认可政策从"OR"改为"AND" 并实例化了Chaincode.但是,即使在执行Invoke之后,分类帐中的数据也不会更改.我确认"OR"条件正在运行.(分类帐中的数据已更改)
请告诉我如何解决它.
peer chaincode instantiate -o orderer.example.com:7050 --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C $CHANNEL_NAME -n mycc -v 1.0 -c '{"Args":["init","a", "100", "b","200"]}' -P "**OR** ('Org1MSP.member','Org2MSP.member')"
Run Code Online (Sandbox Code Playgroud)
==>
peer chaincode instantiate -o orderer.example.com:7050 --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C $CHANNEL_NAME -n mycc -v 1.0 -c '{"Args":["init","a", "100", "b","200"]}' -P "**AND** ('Org1MSP.member','Org2MSP.member')"
Run Code Online (Sandbox Code Playgroud) 我有一个id为ul1的ul.在UL我有3 li,每个包含一个文本框.如何读取ul的每个li以检索li中文本框的值并将它们放入数组中?
我有一个应用程序需要区分良好的HTTP GET请求和坏.
For example:
http://somesite.com?passes=dodgy+parameter # BAD
http://anothersite.com?passes=a+good+parameter # GOOD
My system can make a binary decision about whether or not a URL is good or bad - but ideally I would like it to predict whether or not a previously unseen URL is good or bad.
http://some-new-site.com?passes=a+really+dodgy+parameter # BAD
I feel the need for a support vector machine (SVM) ... but I need to learn machine learning. Some questions:
Run Code Online (Sandbox Code Playgroud)
1)SVM是否适合此任务?2)我可以使用原始URL进行训练吗? - 没有明确指定'功能'3)我需要多少个网址来擅长预测?4)我应该使用什么样的SVM内核?5)训练完毕后,如何保持最新状态?6)如何再次测试看不见的URL以确定它是好还是坏?一世
我正在按照以下链接在Hyperledger Fabric上设置我的第一个网络 http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html
无论在此设置中提到的步骤,我几乎都可以做到.问题是当我尝试使用下面的指令将其他对等体加入到通道时
您可以根据需要通过对四个环境变量进行适当更改来使其他对等方加入通道.
我导出以下变量
export CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp
export CORE_PEER_ADDRESS=peer1.org1.example.com:8051
export CORE_PEER_LOCALMSPID="Org1MSP"
export CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/tls/ca.crt
Run Code Online (Sandbox Code Playgroud)
然后我跑了
peer channel join -b mychannel.block
Run Code Online (Sandbox Code Playgroud)
我得到以下错误
2017-08-02 06:38:12.375 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2017-08-02 06:38:12.376 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2017-08-02 06:38:12.379 UTC [grpc] Printf -> DEBU 003 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp 172.19.0.2:8051: getsockopt: connection refused"; Reconnecting to {peer1.org1.example.com:8051 <nil>}
2017-08-02 06:38:13.379 …Run Code Online (Sandbox Code Playgroud) 我想生成end2end crypto-config工件.我需要执行以下命令:
build/bin/cryptogen generate --config crypto-config.yaml --output=crypto-config
Run Code Online (Sandbox Code Playgroud)
请告诉我在哪里可以找到加密工具.
当我尝试使用Hyperledger Fabric创建频道时,请求失败,并返回以下错误:
客户端日志:
错误:出现意外状态:BAD_REQUEST-验证新通道“ testchannel”的通道创建事务出错,无法成功将更新应用于模板配置:错误授权更新:验证DeltaSet:[Group] / Channel / Application的策略不满意:隐式策略评估失败-满足0个子策略,但是此策略要求满足“管理员”子策略中的1个
如何在JQuery中为Div元素添加css类?我有一个带有css类的DIV,div包含一个表单.单击提交后,我希望原始的css类消失,并添加一个新类?我正在使用JQuery作为框架